core: create string-format.cpp source file

The mobile version of the list used string formatting functions
defined in DiveObjectHelper and declared in mobilelistmodels.h.
Very confusing. Move them to a separate source file where - in
the long run - all the string-formatting functions, which
are scattered all over the place, can be collected.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Berthold Stoeger 2020-12-14 22:42:07 +01:00 committed by Dirk Hohndel
parent dc37ba7758
commit bf8261c001
7 changed files with 178 additions and 156 deletions

View file

@ -89,6 +89,7 @@ SOURCES += subsurface-mobile-main.cpp \
core/membuffer.c \
core/selection.cpp \
core/sha1.c \
core/string-format.cpp \
core/strtod.c \
core/tag.c \
core/taxonomy.c \
@ -222,6 +223,7 @@ HEADERS += \
core/selection.h \
core/sha1.h \
core/strndup.h \
core/string-format.h \
core/subsurfacestartup.h \
core/subsurfacesysinfo.h \
core/taxonomy.h \