summaryrefslogtreecommitdiff
path: root/libsowatch
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2012-09-02 20:53:05 +0200
committerJavier S. Pedro <maemo@javispedro.com>2012-09-02 20:53:05 +0200
commit2f631362b54180252d0daa34f359338860a8782b (patch)
tree86148bee6e0b09e2c68a8166fc2b6143f22d7949 /libsowatch
parent3e5440a3e1d4f23180b8e6795ae1c29f9964379d (diff)
downloadsowatch-2f631362b54180252d0daa34f359338860a8782b.tar.gz
sowatch-2f631362b54180252d0daa34f359338860a8782b.zip
fixing a few warnings
Diffstat (limited to 'libsowatch')
-rw-r--r--libsowatch/weathernotification.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libsowatch/weathernotification.cpp b/libsowatch/weathernotification.cpp
index ddfd60b..6d693b2 100644
--- a/libsowatch/weathernotification.cpp
+++ b/libsowatch/weathernotification.cpp
@@ -15,6 +15,8 @@ qreal WeatherNotification::convertTemperature(qreal temp, Unit from, Unit to)
return temp * (9.0f/5.0f) + 32.0f;
} else if (from == Fahrenheit && to == Celsius) {
return (temp - 32.0f) * (5.0f/9.0f);
+ } else {
+ return 0.0f;
}
}