Skip to content

Commit 5887f8a

Browse files
committed
[core] minor improvement in TIterator
1 parent a3b1ba8 commit 5887f8a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

core/cont/inc/TCollection.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,7 @@ class TIter {
267267
}
268268
TIter &operator=(TIterator *iter)
269269
{
270-
if (fIterator)
271-
delete fIterator;
270+
delete fIterator;
272271
fIterator = iter;
273272
return *this;
274273
}

0 commit comments

Comments
 (0)