From 37f39ecf3cc38737b79f030be67debba687be962 Mon Sep 17 00:00:00 2001 From: dankan1890 Date: Sun, 3 Apr 2016 18:45:34 +0200 Subject: Small changes. (nw) --- src/lib/util/options.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/lib/util/options.cpp') 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 -- cgit v1.2.3-70-g09d2