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/svtools | |
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/svtools')
-rw-r--r-- | include/svtools/ctrltool.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/svtools/ctrltool.hxx b/include/svtools/ctrltool.hxx index 3b11eac75e36..4c642df4be47 100644 --- a/include/svtools/ctrltool.hxx +++ b/include/svtools/ctrltool.hxx @@ -144,7 +144,8 @@ private: OUString maBoldItalic; OUString maBlack; OUString maBlackItalic; - sal_IntPtr* mpSizeAry; + mutable std::unique_ptr<sal_IntPtr[]> + mpSizeAry; VclPtr<OutputDevice> mpDev; VclPtr<OutputDevice> mpDev2; std::vector<std::unique_ptr<ImplFontListNameInfo>> m_Entries; |