diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2012-09-02 20:53:05 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2012-09-02 20:53:05 +0200 |
commit | 2f631362b54180252d0daa34f359338860a8782b (patch) | |
tree | 86148bee6e0b09e2c68a8166fc2b6143f22d7949 /libsowatch | |
parent | 3e5440a3e1d4f23180b8e6795ae1c29f9964379d (diff) | |
download | sowatch-2f631362b54180252d0daa34f359338860a8782b.tar.gz sowatch-2f631362b54180252d0daa34f359338860a8782b.zip |
fixing a few warnings
Diffstat (limited to 'libsowatch')
-rw-r--r-- | libsowatch/weathernotification.cpp | 2 |
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; } } |