Gui: modernize C++: return braced init list
This commit is contained in:
@@ -518,7 +518,7 @@ std::vector<App::DocumentObject*> SelectionSingleton::getObjectsOfType(const cha
|
||||
{
|
||||
Base::Type typeId = Base::Type::fromName(typeName);
|
||||
if (typeId == Base::Type::badType())
|
||||
return std::vector<App::DocumentObject*>();
|
||||
return {};
|
||||
return getObjectsOfType(typeId, pDocName, resolve);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user