LGTM: [skip ci] fix: Declaration hides parameter

A local variable hides a parameter. This may be confusing. Consider renaming one of them.
This commit is contained in:
wmayer
2020-07-27 10:57:34 +02:00
parent a9f0b7703e
commit 45e0673645
23 changed files with 153 additions and 141 deletions

View File

@@ -679,9 +679,9 @@ void ImportXCAF::loadShapes(const TDF_Label& label)
TCollection_ExtendedString extstr = name->Get();
char* str = new char[extstr.LengthOfCString()+1];
extstr.ToUTF8CString(str);
std::string label(str);
if (!label.empty())
myNameMap[aShape.HashCode(INT_MAX)] = label;
std::string labelName(str);
if (!labelName.empty())
myNameMap[aShape.HashCode(INT_MAX)] = labelName;
delete [] str;
}