]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/GraphicsLoader.cpp
Fix comparing a pointer with a char
[lyx.git] / src / graphics / GraphicsLoader.cpp
index 5ed19c60eafec6825ef28a4b943f16439a46aa27..9f873baf3db09e56c4fccd14b28e2c06b264d015 100644 (file)
@@ -89,7 +89,7 @@ void LoaderQueue::loadNext()
        LYXERR(Debug::GRAPHICS, "LoaderQueue: "
                << cache_queue_.size() << " items in the queue");
        int counter = s_numimages_;
-       while (cache_queue_.size() && counter--) {
+       while (!cache_queue_.empty() && counter--) {
                Cache::ItemPtr ptr = cache_queue_.front();
                cache_set_.erase(ptr);
                cache_queue_.pop_front();