removed useless std::move on const and unmovable objects

This commit is contained in:
asapelkin
2019-10-24 01:00:39 +03:00
committed by wmayer
parent 1987ecabdd
commit 5a75d2ff45
4 changed files with 5 additions and 5 deletions

View File

@@ -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;

View File

@@ -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));

View File

@@ -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;
}

View File

@@ -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();
}