summaryrefslogtreecommitdiff
path: root/starmath/qa
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-02-14 20:30:36 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-02-14 20:33:22 +0000
commit08348b226b6bb0ba9b1c24802c1f306b7b3905a1 (patch)
treee3f02b074235e63ed4de194b9cfd7ba782c02b74 /starmath/qa
parentbf8a4f0d95398dc6bf70bb51f5d99fdbb3a45235 (diff)
boost::scoped_ptr->std::unique_ptr
Change-Id: I0f9d93e945ec554e9ea89621ecd30f683f3f184c
Diffstat (limited to 'starmath/qa')
-rw-r--r--starmath/qa/cppunit/test_nodetotextvisitors.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/starmath/qa/cppunit/test_nodetotextvisitors.cxx b/starmath/qa/cppunit/test_nodetotextvisitors.cxx
index 6b66d3ae21f5..4e4de168d476 100644
--- a/starmath/qa/cppunit/test_nodetotextvisitors.cxx
+++ b/starmath/qa/cppunit/test_nodetotextvisitors.cxx
@@ -19,7 +19,7 @@
#include <cursor.hxx>
#include "mock-visitor.hxx"
-#include <boost/scoped_ptr.hpp>
+#include <memory>
typedef tools::SvRef<SmDocShell> SmDocShellRef;
@@ -447,7 +447,7 @@ void Test::parseandparseagain(const char *formula, const char *test_name)
output2);
// auxiliary test for Accept()
- boost::scoped_ptr<MockVisitor> mv(new MockVisitor);
+ std::unique_ptr<MockVisitor> mv(new MockVisitor);
pNode1->Accept(mv.get());
pNode2->Accept(mv.get());
@@ -473,7 +473,7 @@ void Test::ParseAndCheck(const char *formula, const char * expected, const char
sOutput);
// auxiliary test for Accept()
- boost::scoped_ptr<MockVisitor> mv(new MockVisitor);
+ std::unique_ptr<MockVisitor> mv(new MockVisitor);
pNode->Accept(mv.get());
delete pNode;
@@ -500,7 +500,7 @@ void Test::ParseAndCompare(const char *formula1, const char *formula2, const cha
CPPUNIT_ASSERT_EQUAL_MESSAGE(test_name, sOutput1, sOutput2);
// auxiliary test for Accept()
- boost::scoped_ptr<MockVisitor> mv(new MockVisitor);
+ std::unique_ptr<MockVisitor> mv(new MockVisitor);
pNode1->Accept(mv.get());
pNode2->Accept(mv.get());