summaryrefslogtreecommitdiff
path: root/src/OptionParser.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/OptionParser.cc')
-rw-r--r--src/OptionParser.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/OptionParser.cc b/src/OptionParser.cc
index a99b76b7..be872d3e 100644
--- a/src/OptionParser.cc
+++ b/src/OptionParser.cc
@@ -154,7 +154,7 @@ void OptionParser::parseArg
} else {
op = findByShortName(c);
}
- if(op.isNull()) {
+ if(!op) {
throw DL_ABORT_EX("Failed to parse command-line options.");
}
out << op->getName() << "=";
@@ -390,7 +390,7 @@ SharedHandle<OptionParser> OptionParser::optionParser_;
const SharedHandle<OptionParser>& OptionParser::getInstance()
{
- if(optionParser_.isNull()) {
+ if(!optionParser_) {
optionParser_.reset(new OptionParser());
optionParser_->setOptionHandlers(OptionHandlerFactory::createOptionHandlers());
}