summaryrefslogtreecommitdiff
path: root/src/NetrcAuthResolver.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-06-22 01:10:38 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-06-22 01:10:38 +0900
commit07d270c87e6f9184aea4ca17eb26e466712e8db2 (patch)
tree2dfbaa2e0d2ad0f38cb73098608f7d67a64320f8 /src/NetrcAuthResolver.h
parent126a4bde612eb0e6c48cf2f13ebe3eac45cc71a8 (diff)
Require -std=c++11 and use std::shared_ptr instead of SharedHandle
Diffstat (limited to 'src/NetrcAuthResolver.h')
-rw-r--r--src/NetrcAuthResolver.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/NetrcAuthResolver.h b/src/NetrcAuthResolver.h
index 84b748af..a92b5dff 100644
--- a/src/NetrcAuthResolver.h
+++ b/src/NetrcAuthResolver.h
@@ -43,21 +43,21 @@ class Netrc;
class NetrcAuthResolver : public AbstractAuthResolver {
private:
- SharedHandle<Netrc> netrc_;
+ std::shared_ptr<Netrc> netrc_;
bool ignoreDefault_;
- SharedHandle<AuthConfig> findNetrcAuthenticator
+ std::shared_ptr<AuthConfig> findNetrcAuthenticator
(const std::string& hostname) const;
public:
NetrcAuthResolver();
- virtual SharedHandle<AuthConfig> resolveAuthConfig
+ virtual std::shared_ptr<AuthConfig> resolveAuthConfig
(const std::string& hostname);
- void setNetrc(const SharedHandle<Netrc>& netrc);
+ void setNetrc(const std::shared_ptr<Netrc>& netrc);
- const SharedHandle<Netrc>& getNetrc() const
+ const std::shared_ptr<Netrc>& getNetrc() const
{
return netrc_;
}