VCL SysEnvData: add Invalid Platform and Toolkit

Desktop / LibreOffice - Jan-Marek Glogowski [fbihome.de] - 25 May 2022 06:45 UTC

I accidently almost introduced some subtle sytactic error in Qt, because the default platform and toolkit values are actually valid.

So add an Invalid value to both enum classes and then sprinkle some asserts, so these tests aren't working on invalid data.

Thanks Michael Weghorn for catching this in review.

Change-Id: Ic6a0764dfc5168181251023f4d1c66ffa32651d8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134882

27fb97fbfe3d VCL SysEnvData: add Invalid Platform and Toolkit
include/vcl/sysdata.hxx | 8 ++++----
vcl/qt5/QtFrame.cxx | 26 ++++++++++++++++++++------
2 files changed, 24 insertions(+), 10 deletions(-)

Upstream: cgit.freedesktop.org


  • Share