vcl/win/window/salframe.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit d539f6e99e1be89e6133b2ef623c67bf4f0cff4f Author: Noel Grandin <[email protected]> AuthorDate: Wed Feb 19 18:15:30 2025 +0200 Commit: Noel Grandin <[email protected]> CommitDate: Wed Feb 19 19:25:27 2025 +0100 fix "local variable is unused" warning on Windows release build Change-Id: Ia9e95f967b728efdcc2bbb8b73ddffedfa042c72 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181915 Tested-by: Jenkins Reviewed-by: Noel Grandin <[email protected]> diff --git a/vcl/win/window/salframe.cxx b/vcl/win/window/salframe.cxx index 7fd12ef926d7..acd25380741a 100644 --- a/vcl/win/window/salframe.cxx +++ b/vcl/win/window/salframe.cxx @@ -1019,11 +1019,10 @@ SalGraphics* WinSalFrame::AcquireGraphics() if ( mbGraphics || !mhWnd ) return nullptr; - SalData* pSalData = GetSalData(); WinSalGraphics *pGraphics = nullptr; HDC hDC = nullptr; - assert(pSalData->mpInstance->IsMainThread()); + assert(GetSalData()->mpInstance->IsMainThread()); if ( !mpLocalGraphics ) mpLocalGraphics = new WinSalGraphics(WinSalGraphics::WINDOW, true, mhWnd, this); pGraphics = mpLocalGraphics;
