aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstate
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-11-02 13:36:48 +0000
committerlloyd <[email protected]>2010-11-02 13:36:48 +0000
commitfb964299d5f33bea7e48445fc429c16a236ee1c2 (patch)
treebcba7ffcb5e9835446ab31bd0f6127eac2fac23e /src/libstate
parentae1803f4983b9b178c32ebfd4f395cf2ccd939c9 (diff)
Doxygen updates.
Remove version of search_map that returns two distinguishing results; only used in one place, and that can be replaced by a call to count()
Diffstat (limited to 'src/libstate')
-rw-r--r--src/libstate/libstate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstate/libstate.cpp b/src/libstate/libstate.cpp
index d086c5cde..076b55fcf 100644
--- a/src/libstate/libstate.cpp
+++ b/src/libstate/libstate.cpp
@@ -130,7 +130,7 @@ bool Library_State::is_set(const std::string& section,
{
Mutex_Holder lock(config_lock);
- return search_map(config, section + "/" + key, false, true);
+ return config.count(section + "/" + key) != 0;
}
/*