Work around what looks like an MSVC compiler glitch

Desktop / LibreOffice - Stephan Bergmann [redhat.com] - 19 May 2020 08:41 EDT

I got

> [build CXX] vcl/jsdialog/jsdialogbuilder.cxx > C:\lo\core\vcl\inc\salvtables.hxx(841): error C2872: 'MenuButton': ambiguous symbol > C:\lo\core\include\vcl/menubtn.hxx(31): note: could be 'MenuButton' > C:\lo\core\include\vcl/weld.hxx(1320): note: or 'weld::MenuButton' > C:\lo\core\vcl\inc\salvtables.hxx(834): note: while compiling class template member function 'void SalInstanceComboBox::set_item_menu(const rtl::OString &,weld::Menu *)' > C:\lo\core\vcl\inc\salvtables.hxx(932): note: see reference to class template instantiation 'SalInstanceComboBox' being compiled > make[1]: *** [C:/lo/core/solenv/gbuild/LinkTarget.mk:306: C:/lo/core/workdir/CxxObject/vcl/jsdialog/jsdialogbuilder.o] Error 2

now with VS 2019 16.5.5 (and --disable-pch, should that make a difference), for reasons that are not clear to me.

Change-Id: Id6aeef671f807ca59cad9d65578031b323ed697c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94476

dd5852f47bec Work around what looks like an MSVC compiler glitch
vcl/inc/salvtables.hxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Upstream: cgit.freedesktop.org


  • Share