aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/accounts/accounts_repository.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-24 09:49:50 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-24 09:49:50 +0100
commit60a7c102aaedb56844c8a054c62bcc9dfe91bde7 (patch)
tree5449641aecb3b6c449a73c0618371977d1ea86ac /paludis/repositories/accounts/accounts_repository.cc
parentdb798f9e36404906bcd1253c9410169de122fefb (diff)
downloadpaludis-60a7c102aaedb56844c8a054c62bcc9dfe91bde7.tar.gz
paludis-60a7c102aaedb56844c8a054c62bcc9dfe91bde7.tar.xz
Deboilerplateise
Diffstat (limited to 'paludis/repositories/accounts/accounts_repository.cc')
-rw-r--r--paludis/repositories/accounts/accounts_repository.cc24
1 files changed, 12 insertions, 12 deletions
diff --git a/paludis/repositories/accounts/accounts_repository.cc b/paludis/repositories/accounts/accounts_repository.cc
index c475be425..ca4b2a745 100644
--- a/paludis/repositories/accounts/accounts_repository.cc
+++ b/paludis/repositories/accounts/accounts_repository.cc
@@ -171,11 +171,11 @@ AccountsRepository::repository_factory_create(
if (name_str.empty())
name_str = "accounts";
- return std::shared_ptr<AccountsRepository>(std::make_shared<AccountsRepository>(
- make_named_values<AccountsRepositoryParams>(
- n::environment() = env,
- n::name() = RepositoryName(name_str)
- )));
+ return std::make_shared<AccountsRepository>(
+ make_named_values<AccountsRepositoryParams>(
+ n::environment() = env,
+ n::name() = RepositoryName(name_str)
+ ));
}
std::shared_ptr<Repository>
@@ -200,13 +200,13 @@ AccountsRepository::repository_factory_installed_create(
if (root_str != "/")
throw AccountsRepositoryConfigurationError("Values other than '/' for 'root' not yet supported");
- return std::shared_ptr<AccountsRepository>(std::make_shared<AccountsRepository>(
- make_named_values<InstalledAccountsRepositoryParams>(
- n::environment() = env,
- n::handler() = handler,
- n::name() = RepositoryName(name_str),
- n::root() = FSEntry(root_str)
- )));
+ return std::make_shared<AccountsRepository>(
+ make_named_values<InstalledAccountsRepositoryParams>(
+ n::environment() = env,
+ n::handler() = handler,
+ n::name() = RepositoryName(name_str),
+ n::root() = FSEntry(root_str)
+ ));
}
RepositoryName