Mod: Redundant_string_initialization

This commit is contained in:
berniev
2022-08-08 23:54:39 +10:00
committed by wwmayer
parent 7aede27553
commit 5fa05ab83d
9 changed files with 6 additions and 9 deletions

View File

@@ -511,7 +511,7 @@ const std::string &TopoShape::shapeName(TopAbs_ShapeEnum type, bool silent) {
return _ShapeNames[type];
if(!silent)
FC_THROWM(Base::CADKernelError, "invalid shape type '" << type << "'");
static std::string ret("");
static std::string ret;
return ret;
}