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/source/indexentry/indexentrysupplier_common.cxx | |
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/source/indexentry/indexentrysupplier_common.cxx')
-rw-r--r-- | i18npool/source/indexentry/indexentrysupplier_common.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/i18npool/source/indexentry/indexentrysupplier_common.cxx b/i18npool/source/indexentry/indexentrysupplier_common.cxx index fafb3046d5b2..ee5d0d1b08c8 100644 --- a/i18npool/source/indexentry/indexentrysupplier_common.cxx +++ b/i18npool/source/indexentry/indexentrysupplier_common.cxx @@ -30,13 +30,12 @@ namespace com { namespace sun { namespace star { namespace i18n { IndexEntrySupplier_Common::IndexEntrySupplier_Common(const Reference < uno::XComponentContext >& rxContext) { implementationName = "com.sun.star.i18n.IndexEntrySupplier_Common"; - collator = new CollatorImpl(rxContext); + collator.reset( new CollatorImpl(rxContext) ); usePhonetic = false; } IndexEntrySupplier_Common::~IndexEntrySupplier_Common() { - delete collator; } Sequence < lang::Locale > SAL_CALL IndexEntrySupplier_Common::getLocaleList() throw (RuntimeException, std::exception) |