From 2f631362b54180252d0daa34f359338860a8782b Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Sun, 2 Sep 2012 20:53:05 +0200 Subject: fixing a few warnings --- libsowatch/weathernotification.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libsowatch') 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; } } -- cgit v1.2.3