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

Jens-Michael Hoffmann jensmh at gmx.de
Sat Apr 10 16:21:50 CEST 2010


SVN commit 1113336 by jmhoffmann:

GeoSceneSettings: declare methods propertyAvailable and propertyValue const.

 M  +2 -2      GeoSceneSettings.cpp  
 M  +2 -2      GeoSceneSettings.h  


--- trunk/KDE/kdeedu/marble/src/lib/geodata/scene/GeoSceneSettings.cpp #1113335:1113336
@@ -54,7 +54,7 @@
     delete d;
 }
 
-bool GeoSceneSettings::propertyAvailable( const QString& name, bool& available )
+bool GeoSceneSettings::propertyAvailable( const QString& name, bool& available ) const
 {
     mDebug() << "GeoSceneSettings::propertyAvailable" << name;
     QVector<GeoSceneProperty*>::const_iterator it = d->m_properties.constBegin();
@@ -105,7 +105,7 @@
     return false;
 }
 
-bool GeoSceneSettings::propertyValue( const QString& name, bool& value )
+bool GeoSceneSettings::propertyValue( const QString& name, bool& value ) const
 {
     mDebug() << "GeoSceneSettings::propertyValue" << name;
     QVector<GeoSceneProperty*>::const_iterator it = d->m_properties.constBegin();
--- trunk/KDE/kdeedu/marble/src/lib/geodata/scene/GeoSceneSettings.h #1113335:1113336
@@ -57,7 +57,7 @@
      * @return @c true  the property was registered across groups
      *         @c false the property wasn't registered across groups
      */
-    bool propertyAvailable( const QString& name, bool& available  );
+    bool propertyAvailable( const QString& name, bool& available ) const;
 
     /**
      * @brief  Set the value of a property across groups
@@ -75,7 +75,7 @@
      * @return @c true  the property was found and returned accordingly
      *         @c false the property couldn't be found in this group
      */
-    bool propertyValue( const QString& name, bool& value  );
+    bool propertyValue( const QString& name, bool& value ) const;
 
     /**
      * @brief  Get the whole list of properties stored in the settings


More information about the Marble-commits mailing list