summaryrefslogtreecommitdiff
path: root/i18npool/inc/breakiterator_unicode.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'i18npool/inc/breakiterator_unicode.hxx')
-rw-r--r--i18npool/inc/breakiterator_unicode.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/i18npool/inc/breakiterator_unicode.hxx b/i18npool/inc/breakiterator_unicode.hxx
index 42dcb305777a..8783764cb0e1 100644
--- a/i18npool/inc/breakiterator_unicode.hxx
+++ b/i18npool/inc/breakiterator_unicode.hxx
@@ -22,6 +22,7 @@
#include <breakiteratorImpl.hxx>
#include <unicode/brkiter.h>
+#include <memory>
namespace com { namespace sun { namespace star { namespace i18n {
@@ -74,10 +75,10 @@ protected:
{
OUString aICUText;
UText* ut;
- icu::BreakIterator* aBreakIterator;
+ std::unique_ptr<icu::BreakIterator> aBreakIterator;
css::lang::Locale maLocale;
- BI_Data() : ut(nullptr), aBreakIterator(nullptr)
+ BI_Data() : ut(nullptr)
{
}
~BI_Data()