diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2020-09-30 10:24:30 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2020-10-10 10:03:17 +0200 |
| commit | 77e915d73ae2367245976f9c42c9e8f3a630ab12 (patch) | |
| tree | dc27a78e5431da9b49d14a60b79a56a22ef9d199 | |
| parent | 2748b1ccdda3a3b5101d6782387334ca7e72fbe0 (diff) | |
| download | vis-77e915d73ae2367245976f9c42c9e8f3a630ab12.tar.gz vis-77e915d73ae2367245976f9c42c9e8f3a630ab12.tar.xz | |
text: mark text_state argument as const
| -rw-r--r-- | text.c | 2 | ||||
| -rw-r--r-- | text.h | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -814,7 +814,7 @@ size_t text_restore(Text *txt, time_t time) { return history_traverse_to(txt, rev); } -time_t text_state(Text *txt) { +time_t text_state(const Text *txt) { return txt->history->time; } @@ -197,7 +197,7 @@ size_t text_restore(Text*, time_t); * .. note:: TODO: This is currently not the same as the time of the last snapshot. * @endrst */ -time_t text_state(Text*); +time_t text_state(const Text*); /** * @} * @defgroup lines |
