[PATCH 3/7] gpslocation.cpp: fix warning about missing return statement

Lubomir I. Ivanov neolit123 at gmail.com
Wed Nov 18 13:46:56 PST 2015


From: "Lubomir I. Ivanov" <neolit123 at gmail.com>

GpsLocation::applyLocations() has an early check:
if (cnt == 0)
   return false;

The rest of the logic, if applied, should probably lead
to a:
return true;

Signed-off-by: Lubomir I. Ivanov <neolit123 at gmail.com>
---
 qt-mobile/gpslocation.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/qt-mobile/gpslocation.cpp b/qt-mobile/gpslocation.cpp
index b335486..f85c53b 100644
--- a/qt-mobile/gpslocation.cpp
+++ b/qt-mobile/gpslocation.cpp
@@ -211,6 +211,7 @@ bool GpsLocation::applyLocations()
 
 		}
 	}
+	return true;
 }
 
 void GpsLocation::clearGpsData()
-- 
1.7.11.msysgit.0



More information about the subsurface mailing list