]> git.lyx.org Git - lyx.git/blobdiff - src/graphics/GraphicsCacheItem.cpp
Simplify b3fe9cb7049da
[lyx.git] / src / graphics / GraphicsCacheItem.cpp
index 918dc02857994d60fae60852f7cf9da2e23fc328..397b39810e3f480fae82d4604fafbf28226d0561 100644 (file)
@@ -220,7 +220,7 @@ void CacheItem::Impl::startMonitor()
                return;
        monitor_ = FileSystemWatcher::activeMonitor(filename_);
        // Disconnected at the same time as this is destroyed.
-       monitor_->connect([=](bool /* exists */){ startLoading(); });
+       monitor_->connect([this](bool /* exists */){ startLoading(); });
 }
 
 
@@ -442,7 +442,7 @@ void CacheItem::Impl::convertToDisplayFormat()
        // Connect a signal to this->imageConverted and pass this signal to
        // the graphics converter so that we can load the modified file
        // on completion of the conversion process.
-       converter_ = make_unique<Converter>(doc_file_, filename,
+       converter_ = lyx::make_unique<Converter>(doc_file_, filename,
                                            to_file_base.absFileName(),
                                            from, to_);
        // Connection is closed at the same time as *this is destroyed.