]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/GraphicsCache.C
The std::string mammoth path.
[lyx.git] / src / graphics / GraphicsCache.C
index 107275cb62e2a0bc097fc9863cd27e031fc905d6..124141604e3fa115fb0f642d0e9b0ef48d892735 100644 (file)
@@ -6,7 +6,7 @@
  * \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>
 
 #include "support/filetools.h"
 
-#include "frontends/lyx_gui.h"
+namespace support = lyx::support;
 
-#include <map>
+using std::string;
 
-using namespace lyx::support;
 
-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.
@@ -47,7 +47,7 @@ Cache & Cache::get()
 
 
 Cache::Cache()
-       : pimpl_(new Impl())
+       : pimpl_(new Impl)
 {}
 
 
@@ -63,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;
@@ -113,4 +113,5 @@ Cache::ItemPtr const Cache::item(string const & file) const
        return it->second;
 }
 
-} // namespace grfx
+} // namespace graphics
+} // namespace lyx