diff options
author | Xisco Fauli <anistenis@gmail.com> | 2016-06-04 23:54:17 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-06-06 07:14:58 +0000 |
commit | 7f3116bb8d58897e35505ff1d012f9e5bf2cfa72 (patch) | |
tree | f9ad7b711c6185e442128f18742fbd7c2972508e /include | |
parent | 4fcbf856049e56f916d1044fa8cd7e3759a87079 (diff) |
tdf#89329: use unique_ptr for pImpl in window
Change-Id: I0cb050875a7cb03b730cbbf93078f36fc1f372ce
Reviewed-on: https://gerrit.libreoffice.org/25901
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/window.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/vcl/window.hxx b/include/vcl/window.hxx index e93870c27140..3a3e98043d80 100644 --- a/include/vcl/window.hxx +++ b/include/vcl/window.hxx @@ -538,7 +538,7 @@ private: // Please do *not* add new members or inline functions to class Window, // but use class WindowImpl instead - WindowImpl* mpWindowImpl; + std::unique_ptr<WindowImpl> mpWindowImpl; #ifdef DBG_UTIL friend const char* ::ImplDbgCheckWindow( const void* pObj ); @@ -580,7 +580,7 @@ public: SAL_DLLPRIVATE void ImplIsInTaskPaneList( bool mbIsInTaskList ); - SAL_DLLPRIVATE WindowImpl* ImplGetWindowImpl() const { return mpWindowImpl; } + SAL_DLLPRIVATE WindowImpl* ImplGetWindowImpl() const { return mpWindowImpl.get(); } SAL_DLLPRIVATE Point ImplFrameToOutput( const Point& rPos ); |