diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-23 08:49:02 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-08-23 18:35:00 +0200 |
commit | c66568d6b0bbcce26cbdc5a4e5f6e4c0ae748e45 (patch) | |
tree | 2237871caf9e1f78875e808ef81f565ba1aaf61f /i18npool/inc | |
parent | 87f1f7fdb34fe452ac540524224e1e808ce5d3a2 (diff) |
loplugin:useuniqueptr, look for containers..
that can use std::unique_ptr, and apply it in i18npool
Change-Id: Ib410abaf73d5f392c7a7a9a322872b08c948f9e9
Reviewed-on: https://gerrit.libreoffice.org/41438
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'i18npool/inc')
-rw-r--r-- | i18npool/inc/breakiterator_unicode.hxx | 5 |
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() |