Compilation broken since DlgPropertyLink.cpp changes

Here's the place for discussion related to coding in FreeCAD, C++ or Python. Design, interfaces and structures.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Compilation broken since DlgPropertyLink.cpp changes

Post by uwestoehr »

Today's recent Link-related changes broke the compilation for me:

Code: Select all

2>D:\FreeCADGit\src\Gui\DlgPropertyLink.cpp(612): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>D:\FreeCADGit\src\Gui\DlgPropertyLink.cpp(612): error C2143: syntax error: missing ',' before '&'
2>D:\FreeCADGit\src\Gui\DlgPropertyLink.cpp(613): error C2511: 'void Gui::Dialog::DlgPropertyLink::onSelectionChanged(const int)': overloaded member function not found in 'Gui::Dialog::DlgPropertyLink'
2>d:\freecadgit\src\gui\DlgPropertyLink.h(38): note: see declaration of 'Gui::Dialog::DlgPropertyLink'
2>D:\FreeCADGit\src\Gui\DlgPropertyLink.cpp(614): error C2065: 'msg': undeclared identifier
2>D:\FreeCADGit\src\Gui\DlgPropertyLink.cpp(618): error C2065: 'msg': undeclared identifier
2>D:\FreeCADGit\src\Gui\DlgPropertyLink.cpp(621): error C2065: 'msg': undeclared identifier
2>D:\FreeCADGit\src\Gui\DlgPropertyLink.cpp(623): error C3536: 'selObj': cannot be used before it is initialized
2>D:\FreeCADGit\src\Gui\DlgPropertyLink.cpp(623): error C2664: 'App::DocumentObject *App::GeoFeature::resolveElement(App::DocumentObject *,const char *,std::pair<std::string,std::string> &,bool,App::GeoFeature::ElementNameType,const App::DocumentObject *,const char **,App::GeoFeature **)': cannot convert argument 1 from 'int' to 'App::DocumentObject *'
2>D:\FreeCADGit\src\Gui\DlgPropertyLink.cpp(623): note: Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
2>D:\FreeCADGit\src\Gui\DlgPropertyLink.cpp(629): error C2065: 'msg': undeclared identifier
2>D:\FreeCADGit\src\Gui\DlgPropertyLink.cpp(629): error C2664: 'QTreeWidgetItem *Gui::Dialog::DlgPropertyLink::findItem(App::DocumentObject *,const char *,bool *)': cannot convert argument 1 from 'int' to 'App::DocumentObject *'
2>D:\FreeCADGit\src\Gui\DlgPropertyLink.cpp(629): note: Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
2>D:\FreeCADGit\src\Gui\DlgPropertyLink.cpp(630): error C3536: 'item': cannot be used before it is initialized
2>D:\FreeCADGit\src\Gui\DlgPropertyLink.cpp(635): warning C4551: function call missing argument list
2>D:\FreeCADGit\src\Gui\DlgPropertyLink.cpp(635): error C2597: illegal reference to non-static member 'Gui::Dialog::DlgPropertyLink::singleParent'
2>D:\FreeCADGit\src\Gui\DlgPropertyLink.cpp(635): error C3867: 'Gui::Dialog::DlgPropertyLink::singleParent': non-standard syntax; use '&' to create a pointer to member
2>D:\FreeCADGit\src\Gui\DlgPropertyLink.cpp(635): error C2597: illegal reference to non-static member 'Gui::Dialog::DlgPropertyLink::currentObj'
2>D:\FreeCADGit\src\Gui\DlgPropertyLink.cpp(635): error C3867: 'Gui::Dialog::DlgPropertyLink::currentObj': non-standard syntax; use '&' to create a pointer to member
2>D:\FreeCADGit\src\Gui\DlgPropertyLink.cpp(635): error C2568: '&&': unable to resolve function overload
2>D:\FreeCADGit\src\Gui\DlgPropertyLink.cpp(637): error C2597: illegal reference to non-static member 'Gui::Dialog::DlgPropertyLink::currentObj'
2>D:\FreeCADGit\src\Gui\DlgPropertyLink.cpp(644): error C2597: illegal reference to non-static member 'Gui::Dialog::DlgPropertyLink::allowSubObject'
2>D:\FreeCADGit\src\Gui\DlgPropertyLink.cpp(645): error C2065: 'msg': undeclared identifier
Realthunder, could you please have a look?
realthunder wrote: .
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: Compilation broken since DlgPropertyLink.cpp changes

Post by uwestoehr »

uwestoehr wrote: Wed Feb 12, 2020 1:32 am Today's recent Link-related changes broke the compilation for me:
OK, it was just a simple issue. This PR fixes the compilation for me: https://github.com/FreeCAD/FreeCAD/pull/3034
Post Reply