aboutsummaryrefslogtreecommitdiff
path: root/paludis/repositories/e/e_repository_TEST_1.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2013-05-16 20:18:39 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2013-05-22 23:19:27 +0100
commit0174215ed434594d9288e38575a3aa41e2b10842 (patch)
tree6037c4c58a100e5a0cbca30ac7f3d911d8d57032 /paludis/repositories/e/e_repository_TEST_1.cc
parent78d9a9bf0758140e0e8c03c5e8d3288f74efbb51 (diff)
downloadpaludis-0174215ed434594d9288e38575a3aa41e2b10842.tar.gz
paludis-0174215ed434594d9288e38575a3aa41e2b10842.tar.xz
Use nullptr
Diffstat (limited to 'paludis/repositories/e/e_repository_TEST_1.cc')
-rw-r--r--paludis/repositories/e/e_repository_TEST_1.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/paludis/repositories/e/e_repository_TEST_1.cc b/paludis/repositories/e/e_repository_TEST_1.cc
index cffc50d5f..ca97d0f53 100644
--- a/paludis/repositories/e/e_repository_TEST_1.cc
+++ b/paludis/repositories/e/e_repository_TEST_1.cc
@@ -33,7 +33,6 @@
#include <paludis/util/map.hh>
#include <paludis/util/make_named_values.hh>
#include <paludis/util/set.hh>
-#include <paludis/util/make_null_shared_ptr.hh>
#include <paludis/util/safe_ifstream.hh>
#include <paludis/util/stringify.hh>
@@ -126,7 +125,7 @@ TEST(ERepository, InstallEAPI1)
{
const std::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=cat/econf-source-1",
- &env, { })), make_null_shared_ptr(), { }))]->last());
+ &env, { })), nullptr, { }))]->last());
ASSERT_TRUE(bool(id));
EXPECT_EQ("1", visitor_cast<const MetadataValueKey<std::string> >(**id->find_metadata("EAPI"))->parse_value());
id->perform_action(action);
@@ -135,7 +134,7 @@ TEST(ERepository, InstallEAPI1)
{
const std::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=cat/dosym-success-1",
- &env, { })), make_null_shared_ptr(), { }))]->last());
+ &env, { })), nullptr, { }))]->last());
ASSERT_TRUE(bool(id));
EXPECT_EQ("1", visitor_cast<const MetadataValueKey<std::string> >(**id->find_metadata("EAPI"))->parse_value());
id->perform_action(action);
@@ -144,7 +143,7 @@ TEST(ERepository, InstallEAPI1)
{
const std::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=cat/doman-1",
- &env, { })), make_null_shared_ptr(), { }))]->last());
+ &env, { })), nullptr, { }))]->last());
ASSERT_TRUE(bool(id));
EXPECT_EQ("1", visitor_cast<const MetadataValueKey<std::string> >(**id->find_metadata("EAPI"))->parse_value());
id->perform_action(action);
@@ -153,7 +152,7 @@ TEST(ERepository, InstallEAPI1)
{
const std::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=cat/src_prepare-1",
- &env, { })), make_null_shared_ptr(), { }))]->last());
+ &env, { })), nullptr, { }))]->last());
ASSERT_TRUE(bool(id));
EXPECT_EQ("1", visitor_cast<const MetadataValueKey<std::string> >(**id->find_metadata("EAPI"))->parse_value());
id->perform_action(action);
@@ -162,7 +161,7 @@ TEST(ERepository, InstallEAPI1)
{
const std::shared_ptr<const PackageID> id(*env[selection::RequireExactlyOne(generator::Matches(
PackageDepSpec(parse_user_package_dep_spec("=cat/src_configure-1",
- &env, { })), make_null_shared_ptr(), { }))]->last());
+ &env, { })), nullptr, { }))]->last());
ASSERT_TRUE(bool(id));
EXPECT_EQ("1", visitor_cast<const MetadataValueKey<std::string> >(**id->find_metadata("EAPI"))->parse_value());
id->perform_action(action);