App: Redundant_string_initialization

This commit is contained in:
berniev
2022-08-08 23:40:18 +10:00
committed by wwmayer
parent 271b27b7df
commit 2fcd8c0a6d

View File

@@ -103,7 +103,7 @@ App::DocumentObjectExecReturn *DocumentObject::recompute()
// Get objects that have invalid link scope, and print their names.
// Truncate the invalid object list name strings for readability, if they happen to be very long.
std::vector<App::DocumentObject*> invalid_linkobjs;
std::string objnames = "", scopenames = "";
std::string objnames, scopenames;
GeoFeatureGroupExtension::getInvalidLinkObjects(this, invalid_linkobjs);
for (auto& obj : invalid_linkobjs) {
objnames += obj->getNameInDocument();