diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2023-05-31 15:28:16 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2023-05-31 17:17:07 +0200 |
commit | dcc54c4c4bd3c938ba4b06e89f5688ae262b8507 (patch) | |
tree | c56a405a29f479158780016fc89967d57720ed77 | |
parent | 8811bf5aa94df5beff2249e1f51d383b3df6409c (diff) |
vcl: one more nullptr check in Window::GetOutDev()
As it was pointed out at
<https://gerrit.libreoffice.org/c/core/+/151857/2#message-ced4ba9ebaf5725ec06853682c146211824af158>,
it makes little sense to have the nullptr check in the non-const version
of Window::GetOutDev() but not have it in the const version, fix this.
Change-Id: I2f97938a4015d3ce27e35b9971b65090f7289c11
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152429
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
-rw-r--r-- | vcl/source/window/window.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx index 659ae60b27d4..f79918fd7f52 100644 --- a/vcl/source/window/window.cxx +++ b/vcl/source/window/window.cxx @@ -566,7 +566,7 @@ Window::~Window() ::OutputDevice const* Window::GetOutDev() const { - return mpWindowImpl->mxOutDev.get(); + return mpWindowImpl ? mpWindowImpl->mxOutDev.get() : nullptr; } ::OutputDevice* Window::GetOutDev() |