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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user