From dd8e4fae2aa31f1fac2a8a6f086db0db0a3209c6 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 18 Nov 2017 16:06:41 +0100 Subject: 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 --- desktop-widgets/subsurfacewebservices.h | 1 - 1 file changed, 1 deletion(-) (limited to 'desktop-widgets') diff --git a/desktop-widgets/subsurfacewebservices.h b/desktop-widgets/subsurfacewebservices.h index e890bf648..1d4345e7d 100644 --- a/desktop-widgets/subsurfacewebservices.h +++ b/desktop-widgets/subsurfacewebservices.h @@ -113,7 +113,6 @@ slots: #ifdef __cplusplus extern "C" { #endif -extern void set_save_userid_local(short value); extern void set_userid(char *user_id); #ifdef __cplusplus } -- cgit v1.2.3-70-g09d2