diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-29 14:25:42 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-31 07:31:11 +0100 |
commit | 8003f8694ac7c4bc117f7ce692339534d37681f0 (patch) | |
tree | d4d3aa1aa32ebe3ead11b7df2bfcbb280cb4faff /include/i18nutil | |
parent | b3c449b74f64cad8b3c0403acbe283c9a588b690 (diff) |
loplugin:useuniqueptr in oneToOneMappingWithFlag
Change-Id: I729d6640c105ca43fdd2e3e702f6f62876db75e5
Reviewed-on: https://gerrit.libreoffice.org/62647
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/i18nutil')
-rw-r--r-- | include/i18nutil/oneToOneMapping.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/i18nutil/oneToOneMapping.hxx b/include/i18nutil/oneToOneMapping.hxx index c3e49f574f44..80550d957158 100644 --- a/include/i18nutil/oneToOneMapping.hxx +++ b/include/i18nutil/oneToOneMapping.hxx @@ -21,6 +21,7 @@ #include <rtl/ustring.hxx> #include <i18nutil/i18nutildllapi.h> +#include <memory> namespace i18nutil { @@ -80,7 +81,7 @@ public: private: UnicodePairWithFlag const *mpTableWF; UnicodePairFlag mnFlag; - UnicodePairWithFlag const **mpIndex[256]; + std::unique_ptr<UnicodePairWithFlag const *[]> mpIndex[256]; bool mbHasIndex; }; |