summaryrefslogtreecommitdiff
path: root/src/option_processing.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-09-27 22:45:31 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-09-27 22:45:31 +0900
commitae2e4cb7ffbe5d0384056cbf40f355e75f9defd7 (patch)
treed7e4359b34c964c9c9085832dba94721d8dd35a6 /src/option_processing.cc
parent8fc5cdea02afe9992acb680cf7ecce9f445fc5de (diff)
Handle OptionHandlers as raw pointer
Diffstat (limited to 'src/option_processing.cc')
-rw-r--r--src/option_processing.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/option_processing.cc b/src/option_processing.cc
index dbe09c3b..fac8dd0c 100644
--- a/src/option_processing.cc
+++ b/src/option_processing.cc
@@ -141,7 +141,7 @@ void showCandidates
std::vector<std::pair<int, const Pref*> > cands;
for(int i = 1, len = option::countOption(); i < len; ++i) {
const Pref* pref = option::i2p(i);
- const SharedHandle<OptionHandler>& h = parser->find(pref);
+ const OptionHandler* h = parser->find(pref);
if(!h || h->isHidden()) {
continue;
}
@@ -234,7 +234,7 @@ void option_processing(Option& op, std::vector<std::string>& uris,
} catch(OptionHandlerException& e) {
global::cerr()->printf(_("Parse error in %s"), cfname.c_str());
global::cerr()->printf("\n%s", e.stackTrace().c_str());
- const SharedHandle<OptionHandler>& h = oparser->find(e.getPref());
+ const OptionHandler* h = oparser->find(e.getPref());
if(h) {
global::cerr()->printf(_("Usage:"));
global::cerr()->printf("\n%s\n", h->getDescription());
@@ -275,7 +275,7 @@ void option_processing(Option& op, std::vector<std::string>& uris,
#endif // __MINGW32__
} catch(OptionHandlerException& e) {
global::cerr()->printf("%s", e.stackTrace().c_str());
- const SharedHandle<OptionHandler>& h = oparser->find(e.getPref());
+ const OptionHandler* h = oparser->find(e.getPref());
if(h) {
global::cerr()->printf(_("Usage:"));
global::cerr()->printf("\n");