From 9055871c151756251647e9b435f74088da9898f9 Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Mon, 14 Jul 2008 11:40:29 +0000 Subject: [PATCH] Mac gcc compile fix. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25608 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/graphics/Previews.cpp | 4 ---- src/graphics/Previews.h | 9 +++------ 2 files changed, 3 insertions(+), 10 deletions(-) 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