Fix warnings

This commit is contained in:
Richard Kimberly Heck 2020-05-19 17:08:11 -04:00
parent 58dfb1d825
commit 6942dc9fb4

View File

@ -229,12 +229,13 @@ private:
/// ///
QTimer * delay_refresh_; QTimer * delay_refresh_;
/// ///
Trackable trackable_;
///
bool finished_generating_; bool finished_generating_;
/// We don't own this /// We don't own this
static lyx::Converter const * pconverter_; 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. // Don't try to access the cache until we are done.
if (delay_refresh_->isActive() || !finished_generating_) if (delay_refresh_->isActive() || !finished_generating_)
return nullptr; return nullptr;
Cache::const_iterator it = cache_.find(latex_snippet); Cache::const_iterator it = cache_.find(latex_snippet);
return (it == cache_.end()) ? nullptr : it->second.get(); return (it == cache_.end()) ? nullptr : it->second.get();
} }