diff --git a/src/graphics/Previews.cpp b/src/graphics/Previews.cpp index aeadfbec86..b1d40baf0a 100644 --- a/src/graphics/Previews.cpp +++ b/src/graphics/Previews.cpp @@ -40,10 +40,6 @@ static CacheType preview_cache_; } -Previews::Previews() -{} - - PreviewLoader & Previews::loader(Buffer const & buffer) const { CacheType::iterator it = preview_cache_.find(&buffer); diff --git a/src/graphics/Previews.h b/src/graphics/Previews.h index 07e8115c71..31ba7ed95a 100644 --- a/src/graphics/Previews.h +++ b/src/graphics/Previews.h @@ -26,6 +26,9 @@ class PreviewLoader; class Previews { public: + /// This should be a singleton class only instanciated in LyX.cpp. + Previews() {} + /// a wrapper for lyxrc.preview static LyXRC_PreviewStatus status(); @@ -44,15 +47,9 @@ public: void generateBufferPreviews(Buffer const & buffer) const; private: - friend class LyX; /// noncopyable Previews(Previews const &); void operator=(Previews const &); - - /** Make the c-tor, d-tor private so we can control how many objects - * are instantiated. - */ - Previews(); }; } // namespace graphics