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

Jens-Michael Hoffmann jensmh at gmx.de
Mon Nov 8 22:42:26 CET 2010


SVN commit 1194385 by jmhoffmann:

GeoDataPlacemarkPrivate: Assign members in order of declaration.

 M  +6 -5      GeoDataPlacemark_p.h  


--- trunk/KDE/kdeedu/marble/src/lib/geodata/data/GeoDataPlacemark_p.h #1194384:1194385
@@ -38,11 +38,6 @@
     void operator=( const GeoDataPlacemarkPrivate& other )
     {
         GeoDataFeaturePrivate::operator=( other );
-        m_coordinate = other.m_coordinate;
-        m_countrycode = other.m_countrycode;
-        m_area = other.m_area;
-        m_population = other.m_population;
-        m_state = other.m_state;
 
         GeoDataGeometry * geometry = 0;
         if ( other.m_geometry ) {
@@ -71,6 +66,12 @@
         }
         delete m_geometry;
         m_geometry = geometry;
+
+        m_coordinate = other.m_coordinate;
+        m_countrycode = other.m_countrycode;
+        m_area = other.m_area;
+        m_population = other.m_population;
+        m_state = other.m_state;
     }
 
     virtual void* copy()


More information about the Marble-commits mailing list