]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/GraphicsCache.C
hopefully fix tex2lyx linking.
[lyx.git] / src / graphics / GraphicsCache.C
index 124141604e3fa115fb0f642d0e9b0ef48d892735..de5b63ad4c32edeaf582b124c0a1ef93dbb246dd 100644 (file)
@@ -19,6 +19,8 @@
 
 #include "support/filetools.h"
 
+#include <map>
+
 namespace support = lyx::support;
 
 using std::string;
@@ -32,7 +34,8 @@ namespace graphics {
  */
 typedef std::map<string, Cache::ItemPtr> CacheType;
 
-struct Cache::Impl {
+class Cache::Impl {
+public:
        ///
        CacheType cache;
 };
@@ -63,7 +66,7 @@ std::vector<string> Cache::loadableFormats() const
 
 void Cache::add(string const & file) const
 {
-       if (!support::AbsolutePath(file)) {
+       if (!support::absolutePath(file)) {
                lyxerr << "Cache::add(" << file << "):\n"
                       << "The file must be have an absolute path."
                       << std::endl;