diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-09-17 17:10:47 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-09-18 07:59:14 +0000 |
commit | 3a00aaef2a51d7a1a87475a316dc9ae232fac60c (patch) | |
tree | 4cc4516528c0dcb0bb6871e5b517efb74550a521 /editeng/qa | |
parent | c8ee3be0e08c435b106f0ac4b76618b33333b040 (diff) |
boost->std
Change-Id: Ie490bf2c6921f393bdeed96b1a8815996b701bf0
Reviewed-on: https://gerrit.libreoffice.org/18670
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'editeng/qa')
-rw-r--r-- | editeng/qa/unit/core-test.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/editeng/qa/unit/core-test.cxx b/editeng/qa/unit/core-test.cxx index bc128b538aa3..82e918ad971d 100644 --- a/editeng/qa/unit/core-test.cxx +++ b/editeng/qa/unit/core-test.cxx @@ -31,7 +31,7 @@ #include <com/sun/star/text/textfield/Type.hpp> -#include <boost/scoped_ptr.hpp> +#include <memory> using namespace com::sun::star; @@ -466,7 +466,7 @@ void Test::testSectionAttributes() { EditEngine aEngine(mpItemPool); - boost::scoped_ptr<SfxItemSet> pSet(new SfxItemSet(aEngine.GetEmptyItemSet())); + std::unique_ptr<SfxItemSet> pSet(new SfxItemSet(aEngine.GetEmptyItemSet())); SvxWeightItem aBold(WEIGHT_BOLD, EE_CHAR_WEIGHT); SvxPostureItem aItalic(ITALIC_NORMAL, EE_CHAR_ITALIC); @@ -481,7 +481,7 @@ void Test::testSectionAttributes() CPPUNIT_ASSERT_MESSAGE("There should be exactly one item.", pSet->Count() == 1); aEngine.QuickSetAttribs(*pSet, ESelection(0,3,0,9)); // 'bbbccc' - boost::scoped_ptr<EditTextObject> pEditText(aEngine.CreateTextObject()); + std::unique_ptr<EditTextObject> pEditText(aEngine.CreateTextObject()); CPPUNIT_ASSERT_MESSAGE("Failed to create text object.", pEditText.get()); std::vector<editeng::Section> aAttrs; pEditText->GetAllSections(aAttrs); @@ -531,7 +531,7 @@ void Test::testSectionAttributes() aEngine.QuickSetAttribs(*pSet, ESelection(2,0,2,3)); aEngine.QuickSetAttribs(*pSet, ESelection(4,0,4,5)); - boost::scoped_ptr<EditTextObject> pEditText(aEngine.CreateTextObject()); + std::unique_ptr<EditTextObject> pEditText(aEngine.CreateTextObject()); CPPUNIT_ASSERT_MESSAGE("Failed to create text object.", pEditText.get()); std::vector<editeng::Section> aAttrs; pEditText->GetAllSections(aAttrs); @@ -593,7 +593,7 @@ void Test::testSectionAttributes() aEngine.QuickDelete(ESelection(0,0,1,3)); CPPUNIT_ASSERT_EQUAL(static_cast<sal_Int32>(1), aEngine.GetParagraphCount()); - boost::scoped_ptr<EditTextObject> pEditText(aEngine.CreateTextObject()); + std::unique_ptr<EditTextObject> pEditText(aEngine.CreateTextObject()); CPPUNIT_ASSERT_MESSAGE("Failed to create text object.", pEditText.get()); std::vector<editeng::Section> aAttrs; pEditText->GetAllSections(aAttrs); |