MSVC 2015 Error C2664

Luke Benes lukebenes at hotmail.com
Fri Feb 24 07:37:08 UTC 2017


After commit: 
https://cgit.freedesktop.org/libreoffice/core/commit/?id=f28672a077375a360879ad34edfbd06b611ea6d8

Don't inherit SwSpellPopup from PopupMenu

I'm getting the following build error with MSVC 2015:

[build CXX] sw/source/uibase/lingu/olmenu.cxx
[build CXX] sw/source/uibase/misc/numberingtypelistbox.cxx
C:/core/include\vcl/vclptr.hxx(415): error C2664: 'PopupMenu::PopupMenu(const PopupMenu &)': cannot convert argument 1 from 'ScopedVclPtrInstance<PopupMenu>' to 'const ResId &'
C:/core/include\vcl/vclptr.hxx(415): note: Reason: cannot convert from 'ScopedVclPtrInstance<PopupMenu>' to 'const ResId'
C:/core/include\vcl/vclptr.hxx(415): note: No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
C:/core/sw/source/uibase/inc\olmenu.hxx(85): note: see reference to function template instantiation 'ScopedVclPtrInstance<PopupMenu>::ScopedVclPtrInstance<ScopedVclPtrInstance<PopupMenu>>(ScopedVclPtrInstance<PopupMenu> &&)' being compiled
C:/core/sw/source/uibase/inc\olmenu.hxx(85): note: see reference to function template instantiation 'ScopedVclPtrInstance<PopupMenu>::ScopedVclPtrInstance<ScopedVclPtrInstance<PopupMenu>>(ScopedVclPtrInstance<PopupMenu> &&)' being compiled
C:/core/include\vcl/vclptr.hxx(415): error C2664: 'ScopedVclPtr<reference_type>::ScopedVclPtr(const ScopedVclPtr<reference_type> &)': cannot convert argument 1 from '__sal_NoAcquire' to 'PopupMenu *'
with
[
reference_type=PopupMenu
]
C:/core/include\vcl/vclptr.hxx(415): note: Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
make[1]:
make[1]:
Makefile:259: recipe for target 'build' failed
make: *** [build] Error 2

Since the ESC decided to switch to MSVC 2015, shouldn't Jenkins be upgraded to avoid these kinds of issues?


More information about the LibreOffice mailing list