diff options
author | 2010-07-22 10:11:47 +0100 | |
---|---|---|
committer | 2010-07-22 18:54:57 +0100 | |
commit | 7a8a792ae878e2b432e0c67a813022117faa4e60 (patch) | |
tree | d9eac8e45ccc206bc6920d14e25f5613b54be02f /paludis/repositories/e/e_repository_TEST_3.cc | |
parent | 34700872057c99c57416612fbc264c48cfd38f9d (diff) | |
download | paludis-7a8a792ae878e2b432e0c67a813022117faa4e60.tar.gz paludis-7a8a792ae878e2b432e0c67a813022117faa4e60.tar.xz |
No more tr1:: and tr1/
Diffstat (limited to 'paludis/repositories/e/e_repository_TEST_3.cc')
-rw-r--r-- | paludis/repositories/e/e_repository_TEST_3.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/paludis/repositories/e/e_repository_TEST_3.cc b/paludis/repositories/e/e_repository_TEST_3.cc index ff5dc8c45..d60d28090 100644 --- a/paludis/repositories/e/e_repository_TEST_3.cc +++ b/paludis/repositories/e/e_repository_TEST_3.cc @@ -47,7 +47,7 @@ #include <paludis/choice.hh> #include <test/test_framework.hh> #include <test/test_runner.hh> -#include <tr1/functional> +#include <functional> #include <set> #include <string> @@ -58,18 +58,18 @@ using namespace paludis; namespace { - void cannot_uninstall(const std::tr1::shared_ptr<const PackageID> & id, const UninstallActionOptions &) + void cannot_uninstall(const std::shared_ptr<const PackageID> & id, const UninstallActionOptions &) { if (id) throw InternalError(PALUDIS_HERE, "cannot uninstall"); } - std::tr1::shared_ptr<OutputManager> make_standard_output_manager(const Action &) + std::shared_ptr<OutputManager> make_standard_output_manager(const Action &) { return make_shared_ptr(new StandardOutputManager); } - std::string from_keys(const std::tr1::shared_ptr<const Map<std::string, std::string> > & m, + std::string from_keys(const std::shared_ptr<const Map<std::string, std::string> > & m, const std::string & k) { Map<std::string, std::string>::ConstIterator mm(m->find(k)); @@ -105,7 +105,7 @@ namespace test_cases { TestEnvironment env; env.set_paludis_command("/bin/false"); - std::tr1::shared_ptr<Map<std::string, std::string> > keys(new Map<std::string, std::string>); + std::shared_ptr<Map<std::string, std::string> > keys(new Map<std::string, std::string>); keys->insert("format", "e"); keys->insert("names_cache", "/var/empty"); keys->insert("location", stringify(FSEntry::cwd() / "e_repository_TEST_3_dir" / "repo")); @@ -116,11 +116,11 @@ namespace test_cases keys->insert("profile_eapi", "0"); keys->insert("distdir", stringify(FSEntry::cwd() / "e_repository_TEST_3_dir" / "distdir")); keys->insert("builddir", stringify(FSEntry::cwd() / "e_repository_TEST_3_dir" / "build")); - std::tr1::shared_ptr<Repository> repo(ERepository::repository_factory_create(&env, - std::tr1::bind(from_keys, keys, std::tr1::placeholders::_1))); + std::shared_ptr<Repository> repo(ERepository::repository_factory_create(&env, + std::bind(from_keys, keys, std::placeholders::_1))); env.package_database()->add_repository(1, repo); - std::tr1::shared_ptr<FakeInstalledRepository> installed_repo(new FakeInstalledRepository( + std::shared_ptr<FakeInstalledRepository> installed_repo(new FakeInstalledRepository( make_named_values<FakeInstalledRepositoryParams>( n::environment() = &env, n::name() = RepositoryName("installed"), @@ -139,7 +139,7 @@ namespace test_cases { TestMessageSuffix suffix("prefix", true); - const std::tr1::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches( + const std::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches( PackageDepSpec(parse_user_package_dep_spec("=cat/prefix-3", &env, UserPackageDepSpecOptions())), MatchPackageOptions()))]->last()); TEST_CHECK(id); |