Mac gcc compile fix.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25608 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-07-14 11:40:29 +00:00
parent 0915d57aa2
commit 9055871c15
2 changed files with 3 additions and 10 deletions

View File

@ -40,10 +40,6 @@ static CacheType preview_cache_;
} }
Previews::Previews()
{}
PreviewLoader & Previews::loader(Buffer const & buffer) const PreviewLoader & Previews::loader(Buffer const & buffer) const
{ {
CacheType::iterator it = preview_cache_.find(&buffer); CacheType::iterator it = preview_cache_.find(&buffer);

View File

@ -26,6 +26,9 @@ class PreviewLoader;
class Previews { class Previews {
public: public:
/// This should be a singleton class only instanciated in LyX.cpp.
Previews() {}
/// a wrapper for lyxrc.preview /// a wrapper for lyxrc.preview
static LyXRC_PreviewStatus status(); static LyXRC_PreviewStatus status();
@ -44,15 +47,9 @@ public:
void generateBufferPreviews(Buffer const & buffer) const; void generateBufferPreviews(Buffer const & buffer) const;
private: private:
friend class LyX;
/// noncopyable /// noncopyable
Previews(Previews const &); Previews(Previews const &);
void operator=(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 } // namespace graphics