summaryrefslogtreecommitdiff
path: root/include/sfx2
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-01-23 17:09:11 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-01-29 07:21:40 +0100
commit177f92a90aa6cc73064ae52bba58c03c7bf34699 (patch)
tree5fd501fc020fb5a9b7c4f7c7a1b621a0ee2287d7 /include/sfx2
parent53d21a31435c6fc781fe34400e18abb34a6b04d8 (diff)
loplugin:useuniqueptr in SfxChildWindow
Change-Id: I6c9db4cd4f46790295f37c620e2efea4f61870bf Reviewed-on: https://gerrit.libreoffice.org/48741 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/sfx2')
-rw-r--r--include/sfx2/childwin.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sfx2/childwin.hxx b/include/sfx2/childwin.hxx
index f68fa9fbf740..3059d38a5cbb 100644
--- a/include/sfx2/childwin.hxx
+++ b/include/sfx2/childwin.hxx
@@ -148,7 +148,7 @@ class SFX2_DLLPUBLIC SfxChildWindow
VclPtr<vcl::Window> pWindow; // actual contents
SfxChildAlignment eChildAlignment; // Current css::drawing::Alignment
std::unique_ptr< SfxChildWindow_Impl> pImpl; // Implementation data
- SfxChildWindowContext* pContext; // With context-sensitive ChildWindows:
+ std::unique_ptr<SfxChildWindowContext> pContext; // With context-sensitive ChildWindows:
// Another window in pWindow
SAL_DLLPRIVATE void ClearWorkwin();
@@ -206,7 +206,7 @@ public:
SAL_DLLPRIVATE SfxChildWindowContext*
GetContext_Impl() const
- { return pContext; }
+ { return pContext.get(); }
SAL_DLLPRIVATE void SetFactory_Impl( SfxChildWinFactory* );
};