summaryrefslogtreecommitdiff
path: root/src/options/options_template.cpp
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2021-06-02 16:26:34 -0500
committerGitHub <noreply@github.com>2021-06-02 16:26:34 -0500
commit947b7a0211c92ec02e8df9ec97c1db4138300184 (patch)
treeb27158d83eb29e46befaa543a7d2018183dc0c3b /src/options/options_template.cpp
parent4732f17fb971f3843e47dc9bd942bf06bd40aaf0 (diff)
parent87b204084e86b534571f16250ca4871150b2a783 (diff)
Merge branch 'master' into rm-bv-div-zero-const-refsrm-bv-div-zero-const-refs
Diffstat (limited to 'src/options/options_template.cpp')
-rw-r--r--src/options/options_template.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/options/options_template.cpp b/src/options/options_template.cpp
index 091acfd7a..0d6b7f01b 100644
--- a/src/options/options_template.cpp
+++ b/src/options/options_template.cpp
@@ -416,7 +416,7 @@ void Options::parseOptionsRecursive(int argc,
char* argv[],
std::vector<std::string>* nonoptions)
{
-
+ Options& opts = *this;
if(Debug.isOn("options")) {
Debug("options") << "starting a new parseOptionsRecursive with "
<< argc << " arguments" << std::endl;
@@ -553,6 +553,7 @@ void Options::setOptionInternal(const std::string& key,
const std::string& optionarg)
{
options::OptionsHandler* handler = d_handler;
+ Options& opts = *this;
${setoption_handlers}$
throw UnrecognizedOptionException(key);
}
@@ -562,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