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

Jens-Michael Hoffmann jensmh at gmx.de
Fri Apr 9 22:49:39 CEST 2010


SVN commit 1113078 by jmhoffmann:

GeoSceneSettings: constify method group.
There might be a need for a non-const variant in the future, but for now, this is ok.

 M  +1 -1      GeoSceneSettings.cpp  
 M  +1 -1      GeoSceneSettings.h  


--- trunk/KDE/kdeedu/marble/src/lib/geodata/scene/GeoSceneSettings.cpp #1113077:1113078
@@ -169,7 +169,7 @@
     }
 }
 
-GeoSceneGroup* GeoSceneSettings::group( const QString& name )
+const GeoSceneGroup* GeoSceneSettings::group( const QString& name ) const
 {
     GeoSceneGroup* group = 0;
 
--- trunk/KDE/kdeedu/marble/src/lib/geodata/scene/GeoSceneSettings.h #1113077:1113078
@@ -92,7 +92,7 @@
      * @brief  Get a group from the settings
      * @param  name  the name of the group
      */
-    GeoSceneGroup* group( const QString& name );
+    const GeoSceneGroup* group( const QString& name ) const;
 
     /**
      * @brief  Add a property to the settings


More information about the Marble-commits mailing list