1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Fixed a compiler warning

This commit is contained in:
Tom Poole 2018-10-16 17:34:53 +01:00
parent 7d124ca74d
commit 482d87e2db

View file

@ -66,7 +66,7 @@ public:
auto cutoffTime = Time::getApproximateMillisecondCounter() - timeDelta;
auto it = std::find_if (queue.begin(), queue.end(),
[cutoffTime](const std::pair<int32, HeapBlock<uint8>>& x) { return x.first > cutoffTime; });
[cutoffTime](const std::pair<uint32, HeapBlock<uint8>>& x) { return x.first > cutoffTime; });
queue.erase (queue.begin(), it);
queue.empty() ? stopTimer() : startTimer (timeDelta);
@ -74,8 +74,8 @@ public:
private:
CriticalSection queueLock;
std::vector<std::pair<int32, HeapBlock<uint8>>> queue;
static constexpr int timeDelta = 50;
std::vector<std::pair<uint32, HeapBlock<uint8>>> queue;
static constexpr uint32 timeDelta = 50;
};
JUCE_IMPLEMENT_SINGLETON (CoreGraphicsImageGarbageCollector)