diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-11-12 12:48:48 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2010-11-12 12:48:48 +0000 |
| commit | 93e5dbed325f29c1bf867a2847d3b839d545cfb2 (patch) | |
| tree | f657b55b41a05cf364403a36edf9d0921f426e7d /src/Netrc.cc | |
| parent | f6f5a7e5eeec4f14418fec5a7be1bbe57a7ea7e1 (diff) | |
2010-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Removed SharedHandle::isNull(). Instead we added operator* and
operator unspecified_bool_type. Removed use of WeakHandle and
replaced with raw pointer.
Diffstat (limited to 'src/Netrc.cc')
| -rw-r--r-- | src/Netrc.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Netrc.cc b/src/Netrc.cc index 2ba523b9..99e0eb8d 100644 --- a/src/Netrc.cc +++ b/src/Netrc.cc @@ -105,7 +105,7 @@ void Netrc::parse(const std::string& path) storeAuthenticator(authenticator); authenticator.reset(new DefaultAuthenticator()); } else { - if(authenticator.isNull()) { + if(!authenticator) { throw DL_ABORT_EX (StringFormat("Netrc:parse error. %s encounterd where 'machine'" " or 'default' expected.", token.c_str()).str()); @@ -145,7 +145,7 @@ void Netrc::parse(const std::string& path) void Netrc::storeAuthenticator(const SharedHandle<Authenticator>& authenticator) { - if(!authenticator.isNull()) { + if(authenticator) { authenticators_.push_back(authenticator); } } |
