Files
odfstudio/vcl/headless
Michael Weghorn 4e81fbaa3f vcl: Directly return vcl::WindowData in SalFrame::GetWindowState
So far, SalFrame::GetWindowState had a bool return value
and a vcl::WindowData* out param.

The comment said:

    // if this returns false the structure is uninitialised

However, all implementations always return true.
All callers pass the pointer to a newly default-constructed
vcl::WindowData.

Instead, drop the (always true) bool return value and out param
and instead directly return the vcl::WindowData as the methods
return value.

For macOS, add a new vcl::WindowData member to the
RuninmainResult union, so this can be used as a return
value with OSX_SALDATA_RUNINMAIN_UNION in
AquaSalFrame::GetWindowState.

Change-Id: Icc55685cae9991a93fea43963273753d8aa2420f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208169
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-07-19 19:30:22 +02:00
..
…