diff options
author | 2016-04-03 18:45:34 +0200 | |
---|---|---|
committer | 2016-04-03 18:45:34 +0200 | |
commit | 37f39ecf3cc38737b79f030be67debba687be962 (patch) | |
tree | af9073ab147c1898dc88fd112260fb9c3f9b1943 /src/lib/util/options.cpp | |
parent | 91f12fe7962fc7bd8307dc70b1388dd92d109499 (diff) |
Small changes. (nw)
Diffstat (limited to 'src/lib/util/options.cpp')
-rw-r--r-- | src/lib/util/options.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/util/options.cpp b/src/lib/util/options.cpp index 7e8b993c0b2..58d8e86ca6a 100644 --- a/src/lib/util/options.cpp +++ b/src/lib/util/options.cpp @@ -836,3 +836,9 @@ bool core_options::validate_and_set_data(core_options::entry &curentry, const ch curentry.set_value(data.c_str(), priority); return true; } + +inline core_options::entry *core_options::get_entry(const char *name) const +{ + auto curentry = m_entrymap.find(name); + return (curentry != m_entrymap.end()) ? curentry->second : nullptr; +}
\ No newline at end of file |