mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
dd8e4fae2a
In general, the C++-side of the preferences code consistently uses the bool data type for boolean settings. There are five exceptions, which use short instead: showPo2 showPn2 showPhe saveUserIdLocal displayInvalidDives This patch attempts to make the code more consistent by turning these into bools as well. Tests showed that writing as short and reading as bool is handled gracefully by the Qt variant code. Therefore, an upgrade should not cause user-visible changes to their settings. As a bonus, two extern declarations of the set_save_userid_local() function, which is not defined anywhere, were removed. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at> |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
testdivesiteduplication.cpp | ||
testdivesiteduplication.h | ||
testgitstorage.cpp | ||
testgitstorage.h | ||
testgpscoords.cpp | ||
testgpscoords.h | ||
testmerge.cpp | ||
testmerge.h | ||
testparse.cpp | ||
testparse.h | ||
testpicture.cpp | ||
testpicture.h | ||
testplan.cpp | ||
testplan.h | ||
testpreferences.cpp | ||
testpreferences.h | ||
testprofile.cpp | ||
testprofile.h | ||
testrenumber.cpp | ||
testrenumber.h | ||
testunitconversion.cpp | ||
testunitconversion.h |