From 6942dc9fb4ab38a73d73bf387c98a67abe22292c Mon Sep 17 00:00:00 2001 From: Richard Kimberly Heck Date: Tue, 19 May 2020 17:08:11 -0400 Subject: [PATCH] Fix warnings --- src/graphics/PreviewLoader.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/graphics/PreviewLoader.cpp b/src/graphics/PreviewLoader.cpp index 1a9373aa99..d73e353f4c 100644 --- a/src/graphics/PreviewLoader.cpp +++ b/src/graphics/PreviewLoader.cpp @@ -229,12 +229,13 @@ private: /// QTimer * delay_refresh_; /// + Trackable trackable_; + /// bool finished_generating_; /// We don't own this static lyx::Converter const * pconverter_; - Trackable trackable_; }; @@ -452,6 +453,7 @@ PreviewLoader::Impl::preview(string const & latex_snippet) const // Don't try to access the cache until we are done. if (delay_refresh_->isActive() || !finished_generating_) return nullptr; + Cache::const_iterator it = cache_.find(latex_snippet); return (it == cache_.end()) ? nullptr : it->second.get(); }