]> git.lyx.org Git - features.git/blobdiff - src/graphics/GraphicsCacheItem.cpp
Replace support/shared_ptr.h and boost::shared_ptr with std::shared_ptr
[features.git] / src / graphics / GraphicsCacheItem.cpp
index 2d004c93e65db306be0e4417775c27f1a3a741af..0b262ad24126d966a195e96f4263051b66d35a10 100644 (file)
@@ -109,7 +109,7 @@ public:
        bool remove_loaded_file_;
 
        /// The image and its loading status.
-       shared_ptr<Image> image_;
+       std::shared_ptr<Image> image_;
        ///
        ImageStatus status_;
 
@@ -244,7 +244,7 @@ void CacheItem::Impl::reset()
        if (cc_.connected())
                cc_.disconnect();
 
-       if (converter_.get())
+       if (converter_)
                converter_.reset();
 }
 
@@ -264,8 +264,8 @@ void CacheItem::Impl::imageConverted(bool success)
        string const text = success ? "succeeded" : "failed";
        LYXERR(Debug::GRAPHICS, "Image conversion " << text << '.');
 
-       file_to_load_ = converter_.get() ?
-               FileName(converter_->convertedFile()) : FileName();
+       file_to_load_ = converter_ ? FileName(converter_->convertedFile())
+                                      : FileName();
        converter_.reset();
        cc_.disconnect();