diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-18 13:57:55 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-19 09:35:21 +0000 |
commit | 0415cb335b953b9c10075fa524d7707db4aa55e5 (patch) | |
tree | f714106565c6c58a4711b21f966ecc09c8b83157 /include | |
parent | c3e6d12301b42a44bd0d4584005686e324533b60 (diff) |
new loplugin: useuniqueptr: sot..tools
Change-Id: Ided435d016ae28e7c3f2726e41eedd981572ae10
Reviewed-on: https://gerrit.libreoffice.org/33263
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/toolkit/awt/vclxfont.hxx | 3 | ||||
-rw-r--r-- | include/tools/simplerm.hxx | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/include/toolkit/awt/vclxfont.hxx b/include/toolkit/awt/vclxfont.hxx index d9550e742e82..ebc09e7190c7 100644 --- a/include/toolkit/awt/vclxfont.hxx +++ b/include/toolkit/awt/vclxfont.hxx @@ -42,7 +42,8 @@ private: ::osl::Mutex maMutex; css::uno::Reference< css::awt::XDevice> mxDevice; vcl::Font maFont; - FontMetric* mpFontMetric; + std::unique_ptr<FontMetric> + mpFontMetric; protected: bool ImplAssertValidFontMetric(); diff --git a/include/tools/simplerm.hxx b/include/tools/simplerm.hxx index 28d008ed7e59..79e267ad07f2 100644 --- a/include/tools/simplerm.hxx +++ b/include/tools/simplerm.hxx @@ -27,13 +27,15 @@ #include <tools/resid.hxx> #include <i18nlangtag/languagetag.hxx> #include <tools/toolsdllapi.h> +#include <memory> class InternalResMgr; class TOOLS_DLLPUBLIC SimpleResMgr final { osl::Mutex m_aAccessSafety; - InternalResMgr* m_pResImpl; + std::unique_ptr<InternalResMgr> + m_pResImpl; public: /** creates a new SimpleResManager |