summaryrefslogtreecommitdiff
path: root/framework/inc/uielement
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-01-16 14:13:31 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-01-17 11:31:40 +0000
commit70fed865df7655a7ee65fa6cde51bbf93182dbbb (patch)
tree00c77d8ba47be246cd247697045fdcfe6df3ad9e /framework/inc/uielement
parentfb4b59f9370167696d1a67beb16b593ba86971a8 (diff)
new loplugin: useuniqueptr: forms..framework
Change-Id: I4300a13f455148b7156ac3f444c7102d63ae6db3 Reviewed-on: https://gerrit.libreoffice.org/33164 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'framework/inc/uielement')
-rw-r--r--framework/inc/uielement/fontsizemenucontroller.hxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/framework/inc/uielement/fontsizemenucontroller.hxx b/framework/inc/uielement/fontsizemenucontroller.hxx
index 13673a971816..af4e3ca44001 100644
--- a/framework/inc/uielement/fontsizemenucontroller.hxx
+++ b/framework/inc/uielement/fontsizemenucontroller.hxx
@@ -38,6 +38,8 @@
#include <cppuhelper/weak.hxx>
#include <rtl/ustring.hxx>
+#include <memory>
+
namespace framework
{
class FontSizeMenuController : public svt::PopupMenuControllerBase
@@ -66,7 +68,7 @@ namespace framework
void fillPopupMenu( css::uno::Reference< css::awt::XPopupMenu >& rPopupMenu );
OUString retrievePrinterName( css::uno::Reference< css::frame::XFrame >& rFrame );
- long* m_pHeightArray;
+ std::unique_ptr<long[]> m_pHeightArray;
css::awt::FontDescriptor m_aFontDescriptor;
css::frame::status::FontHeight m_aFontHeight;
css::uno::Reference< css::frame::XDispatch > m_xCurrentFontDispatch;