summaryrefslogtreecommitdiff
path: root/src/options/options_template.cpp
diff options
context:
space:
mode:
authorGereon Kremer <nafur42@gmail.com>2021-06-02 15:21:22 +0200
committerGitHub <noreply@github.com>2021-06-02 15:21:22 +0200
commit66cdf5254bc58ecff335321478e73c8c0d6df296 (patch)
tree6b38ac130e7e05479c599e32b40c8c9b6c4acdb6 /src/options/options_template.cpp
parent6d359817283f196034d8e36d0b9c1f10fb16d644 (diff)
Remove `Options::operator[]` (#6649)
This PR removes the next heavily specialized template function Options::operator[] in favor of direct access to the option data.
Diffstat (limited to 'src/options/options_template.cpp')
-rw-r--r--src/options/options_template.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/options/options_template.cpp b/src/options/options_template.cpp
index 251072ba5..0d6b7f01b 100644
--- a/src/options/options_template.cpp
+++ b/src/options/options_template.cpp
@@ -563,6 +563,7 @@ void Options::setOptionInternal(const std::string& key,
std::string Options::getOption(const std::string& key) const
{
Trace("options") << "Options::getOption(" << key << ")" << std::endl;
+ const Options& options = *this;
${getoption_handlers}$
throw UnrecognizedOptionException(key);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback