Skip to content

Commit

Permalink
Fix some compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
centic9 committed Feb 11, 2023
1 parent ab7a1b7 commit addf654
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/movescount/logstore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1423,7 +1423,6 @@ bool LogStore::XMLWriter::writePersonalSettings()
xml.writeTextElement("GPSTimeKeeping", QString("%1").arg(personalSettings->sync_time_w_gps));
xml.writeTextElement("Use24hClock", QString("%1").arg(personalSettings->time_format));
QString timeFormat;
timeFormat.sprintf("%02u:%02u", personalSettings->alarm.hour, personalSettings->alarm.minute);
xml.writeTextElement("Alarm", timeFormat.sprintf("%02u:%02u", personalSettings->alarm.hour,
personalSettings->alarm.minute));
xml.writeTextElement("AlarmEnable", QString("%1").arg(personalSettings->alarm_enable));
Expand Down
6 changes: 3 additions & 3 deletions src/movescount/sportmode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,20 +60,20 @@ CustomMode::CustomMode(QVariantMap &customModeMap, QObject *parent) :
useHrLimits = customModeMap[USE_HR_LIMITS].toBool();
useIntervals = customModeMap[USE_INTERVALS].toBool();
sportmodeId = customModeMap[SPORT_MODE_ID].toUInt();
if (customModeMap[AUTO_SCROLING_SPEED].toString() == QString::null) {
if (customModeMap[AUTO_SCROLING_SPEED].toString() == QString()) {
autoScrolingSpeed = 0;
}
else {
autoScrolingSpeed = customModeMap[AUTO_SCROLING_SPEED].toUInt();
}
autoPauseSpeed = customModeMap[AUTO_PAUSE_SPEED].toFloat();
if (customModeMap[BACKLIGHT_MODE].toString() == QString::null) {
if (customModeMap[BACKLIGHT_MODE].toString() == QString()) {
backlightMode = 0xff;
}
else {
backlightMode = customModeMap[BACKLIGHT_MODE].toUInt();
}
if (customModeMap[DISPLAY_IS_NEGATIVE].toString() == QString::null) {
if (customModeMap[DISPLAY_IS_NEGATIVE].toString() == QString()) {
displayIsNegative = 0xff;
}
else {
Expand Down

0 comments on commit addf654

Please sign in to comment.