From 93e5dbed325f29c1bf867a2847d3b839d545cfb2 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Fri, 12 Nov 2010 12:48:48 +0000 Subject: 2010-11-12 Tatsuhiro Tsujikawa Removed SharedHandle::isNull(). Instead we added operator* and operator unspecified_bool_type. Removed use of WeakHandle and replaced with raw pointer. --- src/NetrcAuthResolver.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/NetrcAuthResolver.cc') diff --git a/src/NetrcAuthResolver.cc b/src/NetrcAuthResolver.cc index 9d188585..ea6d298c 100644 --- a/src/NetrcAuthResolver.cc +++ b/src/NetrcAuthResolver.cc @@ -43,7 +43,7 @@ NetrcAuthResolver::NetrcAuthResolver():ignoreDefault_(false) {} SharedHandle NetrcAuthResolver::resolveAuthConfig(const std::string& hostname) { - if(getUserDefinedAuthConfig().isNull()) { + if(!getUserDefinedAuthConfig()) { return findNetrcAuthenticator(hostname); } else { return getUserDefinedAuthConfig(); @@ -53,11 +53,11 @@ NetrcAuthResolver::resolveAuthConfig(const std::string& hostname) SharedHandle NetrcAuthResolver::findNetrcAuthenticator(const std::string& hostname) const { - if(netrc_.isNull()) { + if(!netrc_) { return getDefaultAuthConfig(); } else { SharedHandle auth = netrc_->findAuthenticator(hostname); - if(auth.isNull()) { + if(!auth) { return getDefaultAuthConfig(); } else { if(ignoreDefault_ && auth->getMachine().empty()) { -- cgit