mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-29 21:05:12 +00:00
Fix warnings
This commit is contained in:
parent
58dfb1d825
commit
6942dc9fb4
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user