Kaydet (Commit) 7f3116bb authored tarafından Xisco Fauli's avatar Xisco Fauli Kaydeden (comit) Noel Grandin

tdf#89329: use unique_ptr for pImpl in window

Change-Id: I0cb050875a7cb03b730cbbf93078f36fc1f372ce
Reviewed-on: https://gerrit.libreoffice.org/25901Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst 4fcbf856
......@@ -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 );
......
......@@ -550,7 +550,7 @@ void Window::dispose()
}
// should be the last statements
delete mpWindowImpl; mpWindowImpl = nullptr;
mpWindowImpl.reset();
OutputDevice::dispose();
}
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment