Part: modernize C++: return braced init list
This commit is contained in:
@@ -272,7 +272,7 @@ std::string ViewProviderSubShapeBinder::dropObjectEx(App::DocumentObject* obj, A
|
||||
{
|
||||
auto self = dynamic_cast<PartDesign::SubShapeBinder*>(getObject());
|
||||
if (!self)
|
||||
return std::string();
|
||||
return {};
|
||||
std::map<App::DocumentObject*, std::vector<std::string> > values;
|
||||
if (!subname) subname = "";
|
||||
std::string sub(subname);
|
||||
@@ -293,7 +293,7 @@ std::string ViewProviderSubShapeBinder::dropObjectEx(App::DocumentObject* obj, A
|
||||
self->setLinks(std::move(values), QApplication::keyboardModifiers() == Qt::ControlModifier);
|
||||
if (self->Relative.getValue())
|
||||
updatePlacement(false);
|
||||
return std::string();
|
||||
return {};
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user