diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-05 10:05:13 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-06 11:46:07 +0100 |
commit | 2589cb2a7eba778c249eaa938eb1bf934c6bf3b4 (patch) | |
tree | 8c3fa950470852b208d4f003bc4c7fe4f8e660e2 /include/svx | |
parent | 2e6bbc04d906ed308fc5ca769bad7b8b4676594e (diff) |
loplugin:useuniqueptr in OLEObjCache
Change-Id: Ie16963e2b3b9d85d5640f03daa487dbe231af4a1
Reviewed-on: https://gerrit.libreoffice.org/49272
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svx')
-rw-r--r-- | include/svx/svdetc.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/svx/svdetc.hxx b/include/svx/svdetc.hxx index ef62a825245a..20d37c3c6d4f 100644 --- a/include/svx/svdetc.hxx +++ b/include/svx/svdetc.hxx @@ -27,6 +27,7 @@ #include <tools/fract.hxx> #include <vcl/outdev.hxx> #include <svx/svdobj.hxx> +#include <memory> /** @@ -162,7 +163,7 @@ class OLEObjCache std::vector<SdrOle2Obj*> maObjs; size_t nSize; - AutoTimer* pTimer; + std::unique_ptr<AutoTimer> pTimer; static bool UnloadObj( SdrOle2Obj* pObj ); DECL_LINK( UnloadCheckHdl, Timer*, void ); |