removed useless std::move on const and unmovable objects
This commit is contained in:
@@ -1835,7 +1835,7 @@ yyreduce:
|
||||
|
||||
case 66:
|
||||
#line 190 "ExpressionParser.y" /* yacc.c:1646 */
|
||||
{ (yyvsp[-1].expr)->addComponent(std::move((yyvsp[0].component))); (yyval.expr) = (yyvsp[-1].expr); }
|
||||
{ (yyvsp[-1].expr)->addComponent((yyvsp[0].component)); (yyval.expr) = (yyvsp[-1].expr); }
|
||||
#line 1840 "ExpressionParser.tab.c" /* yacc.c:1646 */
|
||||
break;
|
||||
|
||||
|
||||
@@ -1857,7 +1857,7 @@ void ObjectIdentifier::resolveAmbiguity(ResolveResults &result) {
|
||||
if(result.resolvedDocumentObject == owner) {
|
||||
setDocumentObjectName(owner,false,std::move(subname));
|
||||
}else if(result.flags.test(ResolveByIdentifier))
|
||||
setDocumentObjectName(std::move(result.resolvedDocumentObject),true,std::move(subname));
|
||||
setDocumentObjectName(result.resolvedDocumentObject,true,std::move(subname));
|
||||
else
|
||||
setDocumentObjectName(
|
||||
String(result.resolvedDocumentObject->Label.getStrValue(),true,false),true,std::move(subname));
|
||||
|
||||
@@ -267,7 +267,7 @@ public:
|
||||
documentObjectNameSet = other.documentObjectNameSet;
|
||||
localProperty = other.localProperty;
|
||||
_cache = std::move(other._cache);
|
||||
_hash = std::move(other._hash);
|
||||
_hash = other._hash;
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
@@ -2161,7 +2161,7 @@ void PropertyLinkSubList::Restore(Base::XMLReader &reader)
|
||||
reader.readEndElement("LinkSubList");
|
||||
|
||||
// assignment
|
||||
setValues(values,std::move(SubNames),std::move(shadows));
|
||||
setValues(values,SubNames,std::move(shadows));
|
||||
_mapped.swap(mapped);
|
||||
}
|
||||
|
||||
@@ -2940,7 +2940,7 @@ void PropertyXLink::setValue(App::DocumentObject *lValue,
|
||||
_pcLink=lValue;
|
||||
if(docInfo && docInfo->pcDoc)
|
||||
stamp=docInfo->pcDoc->LastModifiedDate.getValue();
|
||||
objectName = std::move(name);
|
||||
objectName = name;
|
||||
setSubValues(std::move(subs),std::move(shadows));
|
||||
hasSetValue();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user