]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/GraphicsCache.h
small fix with footnote, use stringstream some more
[lyx.git] / src / graphics / GraphicsCache.h
index 3f28d385cc0b45f80767877a66091d8e56d16776..712ad8006235d4da68371639c08482427111a7ed 100644 (file)
@@ -31,10 +31,12 @@ class GraphicsCacheItem;
     GraphicsCache is a singleton class, there should be only one instance of
     it at any moment.
 */
-class GraphicsCache : public noncopyable {
+class GraphicsCache : boost::noncopyable {
 public:
        /// Get the instance of the class.
-       static GraphicsCache * getInstance();
+       static GraphicsCache & getInstance();
+       /// Public destructor due to compiler warnings.
+       ~GraphicsCache();
 
        typedef boost::shared_ptr<GraphicsCacheItem> shared_ptr_item;
 
@@ -48,11 +50,6 @@ private:
        /// Private c-tor so we can control how many objects are instantiated.
        GraphicsCache() {}
        
-       /// Private d-tor so that no-one will destroy us.
-       ~GraphicsCache();
-       
-       /// Holder of the single instance of the class.
-       static GraphicsCache * singleton;
        ///
        typedef std::map<string, shared_ptr_item> CacheType;
        ///