]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/GraphicsCache.C
If the graphics loader has a copy c-tor it should have copy assignment that does...
[lyx.git] / src / graphics / GraphicsCache.C
index 12ddc91dff3533020431fe3e0a24fa3ff7391322..d11315363d9f86500e484c72156e4f519a24ae9a 100644 (file)
@@ -1,18 +1,16 @@
-/*
+/**
  * \file GraphicsCache.C
- * Copyright 2002 the LyX Team
- * Read the file COPYING
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- * \author Baruch Even <baruch.even@writeme.com>
- * \author Angus Leeming <a.leeming@ic.ac.uk>
+ * \author Baruch Even
+ * \author Angus Leeming
+ *
+ * Full author contact details are available in file CREDITS
  */
 
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
 #include "GraphicsCache.h"
 #include "GraphicsCacheItem.h"
 #include "GraphicsImage.h"
@@ -37,7 +35,7 @@ struct Cache::Impl {
        CacheType cache;
 };
 
-       
+
 Cache & Cache::get()
 {
        // Now return the cache
@@ -61,7 +59,7 @@ std::vector<string> Cache::loadableFormats() const
 }
 
 
-void Cache::add(string const & file)
+void Cache::add(string const & file) const
 {
        if (!AbsolutePath(file)) {
                lyxerr << "Cache::add(" << file << "):\n"
@@ -82,7 +80,7 @@ void Cache::add(string const & file)
 }
 
 
-void Cache::remove(string const & file)
+void Cache::remove(string const & file) const
 {
        CacheType::iterator it = pimpl_->cache.find(file);
        if (it == pimpl_->cache.end())