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