]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/Previews.h
Correct the mess introduced in r33250.
[lyx.git] / src / graphics / Previews.h
index 07e8115c710dac337b375bb2dcb02a1e7e50db4c..31ba7ed95a578792cecb9c1b21b942349a274d93 100644 (file)
@@ -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