[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdeedu/marble/src/lib/geodata/handlers/gpx
From:       Thibaut Gridel <tgridel () free ! fr>
Date:       2010-06-07 20:44:47
Message-ID: 20100607204447.7FBB4AC8CE () svn ! kde ! org
[Download RAW message or body]

SVN commit 1135643 by tgridel:

and again...

 M  +4 -4      GPXgpxTagHandler.cpp  


--- trunk/KDE/kdeedu/marble/src/lib/geodata/handlers/gpx/GPXgpxTagHandler.cpp #1135642:1135643
@@ -47,10 +47,10 @@
     style.setLineStyle(lineStyle);
     style.setStyleId("track");
 
-    GeoDataStyleMap *styleMap = new GeoDataStyleMap();
-    styleMap->setStyleId("map-track");
-    styleMap->insert("normal", QString("#").append(style.styleId()));
-    doc->addStyleMap(*styleMap);
+    GeoDataStyleMap styleMap;
+    styleMap.setStyleId("map-track");
+    styleMap.insert("normal", QString("#").append(style.styleId()));
+    doc->addStyleMap(styleMap);
     doc->addStyle(style);
 
 #ifdef DEBUG_TAGS
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic