diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-03-13 22:12:23 +0100 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2018-04-11 14:01:51 +0300 |
commit | f7b2355cedb75a8ed97644c05d57977f993cb08b (patch) | |
tree | 418456caa1f16a660002867f346ca3f89b88e8fe /core/qthelper.h | |
parent | 44bcc5a30772237e7f0f47d618af345520fb5804 (diff) | |
download | subsurface-f7b2355cedb75a8ed97644c05d57977f993cb08b.tar.gz |
Cleanup: unconstify results of two functions
get_dive_date_c_string() and get_current_date() return copied strings.
Make this explicit by returning non-const pointers.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/qthelper.h')
-rw-r--r-- | core/qthelper.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/qthelper.h b/core/qthelper.h index 02fc629f8..4c0dcda66 100644 --- a/core/qthelper.h +++ b/core/qthelper.h @@ -79,7 +79,7 @@ char *picturedir_string(); const char *subsurface_user_agent(); enum deco_mode decoMode(); int parse_seabear_header(const char *filename, char **params, int pnr); -const char *get_current_date(); +char *get_current_date(); double cache_value(int tissue, int timestep, enum inertgas gas); void cache_insert(int tissue, int timestep, enum inertgas gas, double value); void print_qt_versions(); |