diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-16 14:15:13 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-17 08:34:42 +0000 |
commit | 7a60e90ef05c84923f83882efc01c33fef1ed305 (patch) | |
tree | 4c49f1ab14fda2a79e0d8efdb731d4d6fe924eba /i18npool/inc/indexentrysupplier_default.hxx | |
parent | a9367c1b39600d5a5e2d0067113f06ad59cc37a1 (diff) |
new loplugin: useuniqueptr: helpcompiler..io
Change-Id: I6b394163c144e6b5540cb160abb613d56fe327de
Reviewed-on: https://gerrit.libreoffice.org/33165
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'i18npool/inc/indexentrysupplier_default.hxx')
-rw-r--r-- | i18npool/inc/indexentrysupplier_default.hxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/i18npool/inc/indexentrysupplier_default.hxx b/i18npool/inc/indexentrysupplier_default.hxx index 49b35580e3f4..901dc1d0f4c9 100644 --- a/i18npool/inc/indexentrysupplier_default.hxx +++ b/i18npool/inc/indexentrysupplier_default.hxx @@ -21,6 +21,8 @@ #include <indexentrysupplier_common.hxx> +#include <memory> + namespace com { namespace sun { namespace star { namespace i18n { class Index; @@ -53,7 +55,7 @@ public: throw (css::uno::RuntimeException, std::exception) override; private: - Index *index; + std::unique_ptr<Index> index; }; struct IndexKey { @@ -97,7 +99,7 @@ public: sal_Int16 mkeys[MAX_KEYS]; sal_Int16 mkey_count; OUString skipping_chars; - CollatorImpl *collator; + std::unique_ptr<CollatorImpl> collator; sal_Int16 compare(sal_Unicode c1, sal_Unicode c2); }; |