diff options
author | Anton Lundin <glance@acc.umu.se> | 2014-10-10 07:34:14 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-10-10 02:43:48 -0400 |
commit | eb485f83134cb51299fab457e15af0923ac74089 (patch) | |
tree | 687f16e84fe00ff592bbe8fe47caf90f5df45956 /devicedetails.h | |
parent | f3484d1148318160330ab8d0a84ff9be905344c1 (diff) | |
download | subsurface-eb485f83134cb51299fab457e15af0923ac74089.tar.gz |
Use unsigned char to store devicesettings.
C++-11 complains allot about narrowing the int value to unsigned char in
the setting of these values to the OSTC3. This clears that warning, and
any confusion about these values.
Future work: Change these structures to use our "Subsurface"-types
instead.
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'devicedetails.h')
-rw-r--r-- | devicedetails.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/devicedetails.h b/devicedetails.h index d754e9774..372d5cd32 100644 --- a/devicedetails.h +++ b/devicedetails.h @@ -6,15 +6,15 @@ #include "libdivecomputer.h" struct gas { - int oxygen; - int helium; - int type; - int depth; + unsigned char oxygen; + unsigned char helium; + unsigned char type; + unsigned char depth; }; struct setpoint { - int sp; - int depth; + unsigned char sp; + unsigned char depth; }; class DeviceDetails : public QObject |