[Marble-commits] KDE/kdeedu/marble/src/lib/geodata/handlers/gpx

Jens-Michael Hoffmann jensmh at gmx.de
Fri Oct 9 18:12:57 CEST 2009


SVN commit 1033164 by jmhoffmann:

krazy fix: use QStringRef::isEmpty() instead of comparing with "".

 M  +2 -2      GPXwptTagHandler.cpp  


--- trunk/KDE/kdeedu/marble/src/lib/geodata/handlers/gpx/GPXwptTagHandler.cpp #1033163:1033164
@@ -48,12 +48,12 @@
         qreal lat = 0;
         qreal lon = 0;
         tmp = attributes.value(gpxTag_lat);
-        if ( tmp != "")
+        if ( !tmp.isEmpty() )
         {
             lat = tmp.toString().toFloat();
         }
         tmp = attributes.value(gpxTag_lon);
-        if ( tmp != "")
+        if ( !tmp.isEmpty() )
         {
             lon = tmp.toString().toFloat();
         }


More information about the Marble-commits mailing list