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

List:       kde-commits
Subject:    KDE/kdeedu/marble/src/lib/geodata/data
From:       Dennis Nienhüser <earthwings () gentoo ! org>
Date:       2010-08-27 12:35:53
Message-ID: 20100827123553.0B409AC86C () svn ! kde ! org
[Download RAW message or body]

SVN commit 1168790 by nienhueser:

Add a contains(key) method.

 M  +6 -0      GeoDataExtendedData.cpp  
 M  +5 -0      GeoDataExtendedData.h  


--- trunk/KDE/kdeedu/marble/src/lib/geodata/data/GeoDataExtendedData.cpp \
#1168789:1168790 @@ -78,6 +78,12 @@
 {
     return d->hash.empty();
 }
+
+bool GeoDataExtendedData::contains( const QString &key ) const
+{
+    return d->hash.contains( key );
+}
+
 void GeoDataExtendedData::pack( QDataStream& stream ) const
 {
     GeoDataObject::pack( stream );
--- trunk/KDE/kdeedu/marble/src/lib/geodata/data/GeoDataExtendedData.h \
#1168789:1168790 @@ -77,6 +77,11 @@
     bool isEmpty( ) const;
 
     /**
+      * @brief Returns true if there exists a value for the given key
+      */
+    bool contains( const QString &key ) const;
+
+    /**
      * @brief return value of GeoDataExtendedData object associated with the given \
                @p key as a modifiable reference
      */
     GeoDataData& valueRef( const QString& key ) const;


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

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