]> 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 04819cec97f78ffd0eaf27519422da986438e242..124141604e3fa115fb0f642d0e9b0ef48d892735 100644 (file)
 
 #include "support/filetools.h"
 
-#include "frontends/lyx_gui.h"
+namespace support = lyx::support;
 
-#include <map>
+using std::string;
 
-using namespace lyx::support;
 
 namespace lyx {
 namespace graphics {
@@ -48,7 +47,7 @@ Cache & Cache::get()
 
 
 Cache::Cache()
-       : pimpl_(new Impl())
+       : pimpl_(new Impl)
 {}
 
 
@@ -64,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;