diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-26 09:41:14 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-06-27 08:42:36 +0200 |
commit | 513ac8eb79e45de332d7ddab5b27c70578b904f1 (patch) | |
tree | 46f35b236d75651eb612a088e2cdfd48aa85a21c /include/svl | |
parent | 72b706d7def9e4805e35f3174170dad422b2e7f8 (diff) |
loplugin:useuniqueptr in various
extending it to find places we can use std::unique_ptr on arrays
Change-Id: I9feb1d12d738d6931e752ecb6dd51cbc1540c81b
Reviewed-on: https://gerrit.libreoffice.org/39255
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svl')
-rw-r--r-- | include/svl/zformat.hxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/svl/zformat.hxx b/include/svl/zformat.hxx index e10060c04240..7e358d0c096a 100644 --- a/include/svl/zformat.hxx +++ b/include/svl/zformat.hxx @@ -23,6 +23,7 @@ #include <i18nlangtag/mslangid.hxx> #include <svl/zforlist.hxx> #include <svl/nfkeytab.hxx> +#include <vector> namespace utl { class DigitGroupingIterator; @@ -48,8 +49,8 @@ enum SvNumberformatLimitOps struct ImpSvNumberformatInfo // Struct for FormatInfo { - OUString* sStrArray; // Array of symbols - short* nTypeArray; // Array of infos + std::vector<OUString> sStrArray; // Array of symbols + std::vector<short> nTypeArray; // Array of infos sal_uInt16 nThousand; // Count of group separator sequences sal_uInt16 nCntPre; // Count of digits before decimal point sal_uInt16 nCntPost; // Count of digits after decimal point |