]> git.lyx.org Git - features.git/commitdiff
Mac gcc compile fix.
authorAbdelrazak Younes <younes@lyx.org>
Mon, 14 Jul 2008 11:40:29 +0000 (11:40 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Mon, 14 Jul 2008 11:40:29 +0000 (11:40 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25608 a592a061-630c-0410-9148-cb99ea01b6c8

src/graphics/Previews.cpp
src/graphics/Previews.h

index aeadfbec860d304df949c6d4f1e249ba1b26f522..b1d40baf0a1b2b0057a4f585930a5f319aebc783 100644 (file)
@@ -40,10 +40,6 @@ static CacheType preview_cache_;
 }
 
 
-Previews::Previews()
-{}
-
-
 PreviewLoader & Previews::loader(Buffer const & buffer) const
 {
        CacheType::iterator it = preview_cache_.find(&buffer);
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