summaryrefslogtreecommitdiff
path: root/i18npool/source/textconversion/textconversion_zh.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'i18npool/source/textconversion/textconversion_zh.cxx')
-rw-r--r--i18npool/source/textconversion/textconversion_zh.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/i18npool/source/textconversion/textconversion_zh.cxx b/i18npool/source/textconversion/textconversion_zh.cxx
index ea60ba017e74..084460502502 100644
--- a/i18npool/source/textconversion/textconversion_zh.cxx
+++ b/i18npool/source/textconversion/textconversion_zh.cxx
@@ -26,7 +26,7 @@
#include <com/sun/star/linguistic2/ConversionDictionaryType.hpp>
#include <com/sun/star/linguistic2/ConversionDictionaryList.hpp>
#include <comphelper/string.hxx>
-#include <boost/scoped_array.hpp>
+#include <memory>
using namespace com::sun::star::lang;
using namespace com::sun::star::i18n;
@@ -165,7 +165,7 @@ TextConversion_zh::getWordConversion(const OUString& aText, sal_Int32 nStartPos,
if ((!wordData || !index || !entry) && !xCDL.is()) // no word mapping defined, do char2char conversion.
return getCharConversion(aText, nStartPos, nLength, toSChinese, nConversionOptions);
- boost::scoped_array<sal_Unicode> newStr(new sal_Unicode[nLength * 2 + 1]);
+ std::unique_ptr<sal_Unicode[]> newStr(new sal_Unicode[nLength * 2 + 1]);
sal_Int32 currPos = 0, count = 0;
while (currPos < nLength) {
sal_Int32 len = nLength - currPos;