vcl/source/window/window.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit dcc54c4c4bd3c938ba4b06e89f5688ae262b8507 Author: Miklos Vajna <vmik...@collabora.com> AuthorDate: Wed May 31 15:28:16 2023 +0200 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Wed May 31 17:17:07 2023 +0200 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 <vmik...@collabora.com> Tested-by: Jenkins 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()