From 2fcd8c0a6d8f08c882c49af0b8c4bad2260283f3 Mon Sep 17 00:00:00 2001 From: berniev Date: Mon, 8 Aug 2022 23:40:18 +1000 Subject: [PATCH] App: Redundant_string_initialization --- src/App/DocumentObject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();