From 127cc8bac1b8c8d976aed801ac9f4d75d515d930 Mon Sep 17 00:00:00 2001 From: Jez Higgins Date: Thu, 16 Apr 2020 00:06:30 +0100 Subject: [PATCH] Corrected SAX tests for std::unique_ptr change --- tests/SAX/test_WhitespaceStripper.hpp | 6 +++--- tests/Taggle/test_Taggle.hpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/SAX/test_WhitespaceStripper.hpp b/tests/SAX/test_WhitespaceStripper.hpp index aab39930..ab6b8e2e 100644 --- a/tests/SAX/test_WhitespaceStripper.hpp +++ b/tests/SAX/test_WhitespaceStripper.hpp @@ -125,11 +125,11 @@ class WhitespaceStripperTest : public TestCase } // testStrip private: - std::auto_ptr > source(const std::string& str) + std::unique_ptr > source(const std::string& str) { - std::auto_ptr ss(new std::stringstream()); + std::unique_ptr ss(new std::stringstream()); (*ss) << str; - return std::auto_ptr >(new Arabica::SAX::InputSource(ss)); + return std::make_unique>(std::move(ss)); } // source }; // WhitespaceStripperTest diff --git a/tests/Taggle/test_Taggle.hpp b/tests/Taggle/test_Taggle.hpp index 36a40dc3..dbf602ff 100644 --- a/tests/Taggle/test_Taggle.hpp +++ b/tests/Taggle/test_Taggle.hpp @@ -35,11 +35,11 @@ class TaggleTest : public TestCase } // senseTest private: - std::auto_ptr > source(const std::string& str) + std::unique_ptr > source(const std::string& str) { - std::auto_ptr ss(new std::stringstream()); + std::unique_ptr ss(new std::stringstream()); (*ss) << str; - return std::auto_ptr >(new Arabica::SAX::InputSource(ss)); + return std::make_unique>(std::move(ss)); } // source }; // TaggleTest