summaryrefslogtreecommitdiff
path: root/i18npool/inc
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2016-12-28 14:51:34 +0100
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-12-29 19:30:20 +0000
commitdd286c3874c3afe6bd37b7cd63c9163c172834f8 (patch)
tree1dabd728aedfffd3a6e9ea175fa1defeafcf40f4 /i18npool/inc
parentdb1726216ba200c8a55c23a9d8c2ffd2066263a7 (diff)
use unique_ptr for xdictionary
default destructors are good enough now Change-Id: I6d4ab68d2ee527f5f4e5696c3f093dc66cdc5b4c Reviewed-on: https://gerrit.libreoffice.org/32492 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'i18npool/inc')
-rw-r--r--i18npool/inc/breakiterator_cjk.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/i18npool/inc/breakiterator_cjk.hxx b/i18npool/inc/breakiterator_cjk.hxx
index 8731745385c6..9429176cd72e 100644
--- a/i18npool/inc/breakiterator_cjk.hxx
+++ b/i18npool/inc/breakiterator_cjk.hxx
@@ -22,6 +22,8 @@
#include <breakiterator_unicode.hxx>
#include <xdictionary.hxx>
+#include <memory>
+
namespace com { namespace sun { namespace star { namespace i18n {
// class BreakIterator_CJK
@@ -46,7 +48,7 @@ public:
throw(css::uno::RuntimeException, std::exception) override;
protected:
- xdictionary *dict;
+ std::unique_ptr<xdictionary> m_xDict;
OUString hangingCharacters;
};
@@ -54,7 +56,6 @@ protected:
class BreakIterator_##lang : public BreakIterator_CJK {\
public:\
BreakIterator_##lang (); \
- virtual ~BreakIterator_##lang () override; \
};
BREAKITERATOR_CJK( zh )