We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a2246af commit b7e252dCopy full SHA for b7e252d
core/logic/FrameIterator.cpp
@@ -46,18 +46,13 @@ SafeFrameIterator::SafeFrameIterator(IFrameIterator *it)
46
47
bool SafeFrameIterator::Done() const
48
{
49
- return current == frames.length();
+ return current >= frames.length();
50
}
51
52
bool SafeFrameIterator::Next()
53
54
- if (!this->Done())
55
- {
56
- current++;
57
- return true;
58
- }
59
-
60
- return false;
+ current++;
+ return !this->Done();
61
62
63
void SafeFrameIterator::Reset()
0 commit comments