aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-22 21:46:00 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-07-22 21:46:00 +0100
commit4209b95ecc83365718b3dd5556a6866a662e95c5 (patch)
tree2adf8c110af7f7979685fa1a3743230f8c370c83 /test
parent99ca317486703808bec65846a6266afdace5d0f7 (diff)
downloadpaludis-4209b95ecc83365718b3dd5556a6866a662e95c5.tar.gz
paludis-4209b95ecc83365718b3dd5556a6866a662e95c5.tar.xz
Less verbose PrivateImplementationPattern
Diffstat (limited to 'test')
-rw-r--r--test/test_framework.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/test_framework.cc b/test/test_framework.cc
index 4e4759f19..8dd439601 100644
--- a/test/test_framework.cc
+++ b/test/test_framework.cc
@@ -1,7 +1,7 @@
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
/*
- * Copyright (c) 2006, 2007, 2009 Ciaran McCreesh
+ * Copyright (c) 2006, 2007, 2009, 2010 Ciaran McCreesh
*
* This file is part of the Paludis package manager. Paludis is free software;
* you can redistribute it and/or modify it under the terms of the GNU General
@@ -111,8 +111,7 @@ TestMessageSuffix::suffixes()
}
TestMessageSuffix::TestMessageSuffix(const std::string & s, bool write) :
- paludis::PrivateImplementationPattern<TestMessageSuffix>(
- new paludis::Implementation<TestMessageSuffix>)
+ paludis::PrivateImplementationPattern<TestMessageSuffix>()
{
paludis::Implementation<TestMessageSuffix>::suffixes.push_back(s);
if (write)
@@ -145,7 +144,7 @@ namespace paludis
}
TestCase::TestCase(const std::string & our_name) :
- paludis::PrivateImplementationPattern<TestCase>(new paludis::Implementation<TestCase>(our_name))
+ paludis::PrivateImplementationPattern<TestCase>(our_name)
{
TestCaseList::register_test_case(this);
}