core: convert filter_constraint_data_to_string to C++

Return an std::string to avoid memory management headaches.

While doing that, convert time.c to C++ so that
format_datetime directly returns an std::string.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2024-02-29 11:31:46 +01:00 committed by Michael Keller
parent 898ecd2df5
commit 2e1d852e36
8 changed files with 29 additions and 32 deletions

View file

@ -181,7 +181,7 @@ set(SUBSURFACE_CORE_LIB_SRCS
tag.h
taxonomy.c
taxonomy.h
time.c
time.cpp
timer.c
timer.h
trip.c