X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fgraphics%2FGraphicsCache.h;h=e6d810ff429148e49e0f2d86adc5fe5e87ebb9b1;hb=99c5a46c68bd605c03d4e3a86811831ed7dd3d37;hp=a422623933912edaefce642221a39b47a5a4f2d3;hpb=98ddc514dabfb2556fdfc6c9a8531daf838bebbb;p=lyx.git diff --git a/src/graphics/GraphicsCache.h b/src/graphics/GraphicsCache.h index a422623933..e6d810ff42 100644 --- a/src/graphics/GraphicsCache.h +++ b/src/graphics/GraphicsCache.h @@ -20,7 +20,7 @@ #ifndef GRAPHICSCACHE_H #define GRAPHICSCACHE_H -#include +#include "support/shared_ptr.h" #include #include @@ -44,7 +44,7 @@ public: * Other formats can be loaded if a converter to a loadable format * can be defined. */ - std::vector loadableFormats() const; + std::vector const & loadableFormats() const; /// Add a graphics file to the cache. void add(support::FileName const & file) const; @@ -59,13 +59,13 @@ public: * Returns an empty container if there is no such item. * * IMPORTANT: whatever uses an image must make a local copy of this - * ItemPtr. The boost::shared_ptr<>::use_count() function is + * ItemPtr. The shared_ptr<>::use_count() function is * used to ascertain whether or not to remove the item from the cache * when remove(file) is called. * * You have been warned! */ - typedef boost::shared_ptr ItemPtr; + typedef shared_ptr ItemPtr; /// ItemPtr const item(support::FileName const & file) const;