]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/GraphicsCache.C
add <string> and other small fixes to make
[lyx.git] / src / graphics / GraphicsCache.C
index 7de1a401b6d587229088856b517a42459204da40..124141604e3fa115fb0f642d0e9b0ef48d892735 100644 (file)
@@ -6,15 +6,11 @@
  * \author Baruch Even
  * \author Angus Leeming
  *
- * Full author contact details are available in file CREDITS
+ * 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"
 
 #include "support/filetools.h"
 
-#include "frontends/lyx_gui.h"
+namespace support = lyx::support;
+
+using std::string;
 
-#include <map>
 
-namespace grfx {
+namespace lyx {
+namespace graphics {
 
 /** The cache contains one item per file, so use a map to find the
  *  cache item quickly by filename.
@@ -49,7 +47,7 @@ Cache & Cache::get()
 
 
 Cache::Cache()
-       : pimpl_(new Impl())
+       : pimpl_(new Impl)
 {}
 
 
@@ -65,7 +63,7 @@ std::vector<string> Cache::loadableFormats() const
 
 void Cache::add(string const & file) const
 {
-       if (!AbsolutePath(file)) {
+       if (!support::AbsolutePath(file)) {
                lyxerr << "Cache::add(" << file << "):\n"
                       << "The file must be have an absolute path."
                       << std::endl;
@@ -115,4 +113,5 @@ Cache::ItemPtr const Cache::item(string const & file) const
        return it->second;
 }
 
-} // namespace grfx
+} // namespace graphics
+} // namespace lyx