diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-09-25 22:00:56 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-09-25 22:00:56 +0900 |
| commit | c16cebbc9af11aff8ff3c5bf304d0298c226052e (patch) | |
| tree | 0a620f7c27263c30475034ed0a4e742dc36332a6 /src | |
| parent | 41cb7743746a6013c13a425eb9283ee23113ce84 (diff) | |
Code cleanup
Diffstat (limited to 'src')
| -rw-r--r-- | src/AuthConfigFactory.cc | 10 | ||||
| -rw-r--r-- | src/AuthConfigFactory.h | 4 |
2 files changed, 5 insertions, 9 deletions
diff --git a/src/AuthConfigFactory.cc b/src/AuthConfigFactory.cc index c2448fdd..effd1ff4 100644 --- a/src/AuthConfigFactory.cc +++ b/src/AuthConfigFactory.cc @@ -47,9 +47,10 @@ namespace aria2 { -const std::string AuthConfigFactory::ANONYMOUS("anonymous"); - -const std::string AuthConfigFactory::ARIA2USER_AT("ARIA2USER@"); +namespace { +const std::string AUTH_DEFAULT_USER("anonymous"); +const std::string AUTH_DEFAULT_PASSWD("ARIA2USER@"); +} // namespace AuthConfigFactory::AuthConfigFactory() {} @@ -160,8 +161,7 @@ AuthResolverHandle AuthConfigFactory::createFtpAuthResolver resolver->setUserDefinedAuthConfig (createAuthConfig(op->get(PREF_FTP_USER), op->get(PREF_FTP_PASSWD))); SharedHandle<AuthConfig> defaultAuthConfig - (new AuthConfig(AuthConfigFactory::ANONYMOUS, - AuthConfigFactory::ARIA2USER_AT)); + (new AuthConfig(AUTH_DEFAULT_USER, AUTH_DEFAULT_PASSWD)); resolver->setDefaultAuthConfig(defaultAuthConfig); return resolver; } diff --git a/src/AuthConfigFactory.h b/src/AuthConfigFactory.h index 3ef2863d..abd8efb8 100644 --- a/src/AuthConfigFactory.h +++ b/src/AuthConfigFactory.h @@ -129,10 +129,6 @@ public: // given basicCred. Otherwise, insert given basicCred to // basicCreds_. void updateBasicCred(const SharedHandle<BasicCred>& basicCred); - - static const std::string ANONYMOUS; - - static const std::string ARIA2USER_AT; }; typedef SharedHandle<AuthConfigFactory> AuthConfigFactoryHandle; |
