subsurface/tests
Berthold Stoeger dd8e4fae2a Make handling of booleans consistent on the C++-side of preferences
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>
2017-11-20 20:56:13 +01:00
..
CMakeLists.txt Test for adding a picture with data after JFIF EOI to a dive 2017-05-06 10:31:09 -07:00
testdivesiteduplication.cpp Add SPDX header to tests 2017-04-29 13:32:55 -07:00
testdivesiteduplication.h Add SPDX header to tests 2017-04-29 13:32:55 -07:00
testgitstorage.cpp Add SPDX header to tests 2017-04-29 13:32:55 -07:00
testgitstorage.h Add SPDX header to tests 2017-04-29 13:32:55 -07:00
testgpscoords.cpp Add SPDX header to tests 2017-04-29 13:32:55 -07:00
testgpscoords.h Add SPDX header to tests 2017-04-29 13:32:55 -07:00
testmerge.cpp Add SPDX header to tests 2017-04-29 13:32:55 -07:00
testmerge.h Add SPDX header to tests 2017-04-29 13:32:55 -07:00
testparse.cpp Fix some warnings 2017-05-27 07:21:37 -07:00
testparse.h Test case for CSV profile export to imperial and back 2017-05-12 14:05:33 -07:00
testpicture.cpp Test for adding a picture with data after JFIF EOI to a dive 2017-05-06 10:31:09 -07:00
testpicture.h Add SPDX header to tests 2017-04-29 13:32:55 -07:00
testplan.cpp More VPMB state in special structure 2017-10-01 23:58:55 +03:00
testplan.h Add SPDX header to tests 2017-04-29 13:32:55 -07:00
testpreferences.cpp Make handling of booleans consistent on the C++-side of preferences 2017-11-20 20:56:13 +01:00
testpreferences.h Add SPDX header to tests 2017-04-29 13:32:55 -07:00
testprofile.cpp Add SPDX header to tests 2017-04-29 13:32:55 -07:00
testprofile.h Add SPDX header to tests 2017-04-29 13:32:55 -07:00
testrenumber.cpp Add SPDX header to tests 2017-04-29 13:32:55 -07:00
testrenumber.h Add SPDX header to tests 2017-04-29 13:32:55 -07:00
testunitconversion.cpp Add SPDX header to tests 2017-04-29 13:32:55 -07:00
testunitconversion.h Add SPDX header to tests 2017-04-29 13:32:55 -07:00