diff options
Diffstat (limited to 'gentoobrowse-api/unittests/testMasks.cpp')
-rw-r--r-- | gentoobrowse-api/unittests/testMasks.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gentoobrowse-api/unittests/testMasks.cpp b/gentoobrowse-api/unittests/testMasks.cpp index e80fe1c..ac29b97 100644 --- a/gentoobrowse-api/unittests/testMasks.cpp +++ b/gentoobrowse-api/unittests/testMasks.cpp @@ -13,12 +13,12 @@ class MaskTester : public Portage::Utils::Masks { void consume() const override { if (email && person) { - masks.push_back(new Gentoo::Mask(n, *person, *email, date, + masks.push_back(std::make_shared<Gentoo::Mask>(n, person->raw(), email->raw(), date, boost::algorithm::join(message, " "), Gentoo::StringList(atoms.begin(), atoms.end()))); } } - + public: mutable Gentoo::Masks masks; }; |