summaryrefslogtreecommitdiff
path: root/src/options/options_template.cpp
diff options
context:
space:
mode:
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