summaryrefslogtreecommitdiff
path: root/i18npool/inc
diff options
context:
space:
mode:
authorNoel <noel.grandin@collabora.co.uk>2021-02-10 08:52:43 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-02-10 09:18:53 +0100
commitdcb1022362acb2e794bae79d8827557702dcffd7 (patch)
tree937b76408a4c0909c763283b8e40b26d6b406acf /i18npool/inc
parent4e222d9acf6f2373d505ea8d29056c3aea6b2e0c (diff)
loplugin:refcounting also check OWeakObject subclasses
Change-Id: I2d89085a22d7424c6f8f7662307433ce50fc61d2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110666 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'i18npool/inc')
-rw-r--r--i18npool/inc/cclass_unicode.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/i18npool/inc/cclass_unicode.hxx b/i18npool/inc/cclass_unicode.hxx
index 03a084b01c5e..704deabc46b5 100644
--- a/i18npool/inc/cclass_unicode.hxx
+++ b/i18npool/inc/cclass_unicode.hxx
@@ -22,6 +22,7 @@
#include <com/sun/star/i18n/XCharacterClassification.hpp>
#include <cppuhelper/implbase.hxx>
#include <com/sun/star/lang/XServiceInfo.hpp>
+#include <rtl/ref.hxx>
#include <o3tl/typed_flags_set.hxx>
#include <memory>
@@ -94,7 +95,7 @@ public:
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
private:
- std::unique_ptr<Transliteration_casemapping> trans;
+ rtl::Reference<Transliteration_casemapping> trans;
// --- parser specific (implemented in cclass_unicode_parser.cxx) ---