]> Dogcows Code - chaz/openbox/blobdiff - util/epist/config.cc
toggleGrabs action added
[chaz/openbox] / util / epist / config.cc
index 0df15e9c9ab0e260ad269f1a101c6517f12b855b..506aab76f517ad4a7843b035c222e45dca25114c 100644 (file)
@@ -35,13 +35,16 @@ Config::~Config()
 }
 
 
-const string &Config::getStringValue(Config::ItemType type) const
+bool Config::getStringValue(Config::ItemType type, string &ret) const
 {
   ItemList::const_iterator it = items.begin(), end = items.end();
   for (; it != end; ++it) {
-    if ((*it)->getType() == type)
-      return (*it)->getStringValue();
+    if ((*it)->getType() == type) {
+      ret = (*it)->getStringValue();
+      return true;
+    }
   }
+  return false;
 }
 
 
@@ -52,7 +55,6 @@ int Config::getNumberValue(Config::ItemType type) const
     if ((*it)->getType() == type)
       return (*it)->getNumberValue();
   }
-
   return 0;
 }
 
This page took 0.020655 seconds and 4 git commands to generate.