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

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