diff --git a/src/App/DocumentObject.cpp b/src/App/DocumentObject.cpp index 960e7225f1..88a09972ea 100644 --- a/src/App/DocumentObject.cpp +++ b/src/App/DocumentObject.cpp @@ -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 invalid_linkobjs; - std::string objnames = "", scopenames = ""; + std::string objnames, scopenames; GeoFeatureGroupExtension::getInvalidLinkObjects(this, invalid_linkobjs); for (auto& obj : invalid_linkobjs) { objnames += obj->getNameInDocument();