]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/GraphicsCache.C
hopefully fix tex2lyx linking.
[lyx.git] / src / graphics / GraphicsCache.C
index 53b9a45d5231b9d4865b35bed2cc957f9be834a1..de5b63ad4c32edeaf582b124c0a1ef93dbb246dd 100644 (file)
 
 #include "support/filetools.h"
 
+#include <map>
+
 namespace support = lyx::support;
 
+using std::string;
+
 
 namespace lyx {
 namespace graphics {
@@ -30,7 +34,8 @@ namespace graphics {
  */
 typedef std::map<string, Cache::ItemPtr> CacheType;
 
-struct Cache::Impl {
+class Cache::Impl {
+public:
        ///
        CacheType cache;
 };
@@ -45,7 +50,7 @@ Cache & Cache::get()
 
 
 Cache::Cache()
-       : pimpl_(new Impl())
+       : pimpl_(new Impl)
 {}
 
 
@@ -61,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;