mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0030835: Possible performance improvements in methods TDF_Label::FindAttribute
Make attribute iterator work with pointers to attributes, so, creation of handle on each iteration is avoided.
This commit is contained in:
@@ -60,8 +60,8 @@ Standard_Boolean TDF_Label::FindAttribute
|
||||
if (IsNull()) throw Standard_NullObject("A null Label has no attribute.");
|
||||
TDF_AttributeIterator itr (myLabelNode); // Without removed attributes.
|
||||
for ( ; itr.More(); itr.Next()) {
|
||||
if (itr.Value()->ID() == anID) {
|
||||
anAttribute = itr.Value();
|
||||
if (itr.PtrValue()->ID() == anID) {
|
||||
anAttribute = itr.PtrValue();
|
||||
return Standard_True;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user