cleanup + unused arguments

This commit is contained in:
Konstantin Käfer
2014-04-16 10:55:06 -04:00
parent 74cb7edb5b
commit 797f590cfb
11 changed files with 22 additions and 30 deletions

View File

@@ -24,7 +24,7 @@ bool FrameHistory::needsAnimation(const float duration) const {
const FrameSnapshot &pivot = history.back();
int i = -1;
while (history.size() > i + 1 &&
while ((int)history.size() > i + 1 &&
history[i + 1].time + duration < pivot.time) {
i++;
}
@@ -37,7 +37,7 @@ bool FrameHistory::needsAnimation(const float duration) const {
// Make sure that all subsequent snapshots have the same zoom as the last
// pivot element.
for (; history.size() > i; i++) {
for (; (int)history.size() > i; i++) {
if (history[i].z != pivot.z) {
return true;
}