]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/GraphicsLoader.cpp
installer: further preparation
[lyx.git] / src / graphics / GraphicsLoader.cpp
index f635e0b321f6b8e625f53bf469d8811adce36779..9f873baf3db09e56c4fccd14b28e2c06b264d015 100644 (file)
@@ -89,18 +89,17 @@ 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();
                if (ptr->status() == WaitingToLoad)
                        ptr->startLoading();
        }
-       if (!cache_queue_.empty()) {
+       if (!cache_queue_.empty())
                startLoader();
-       } else {
+       else
                stopLoader();
-       }
 }