X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fgraphics%2FGraphicsLoader.cpp;h=36a6c06d2c12748f2f834612d756c313e984b55d;hb=a700d657b3b06541b10ddae8cc5847bd46d06aae;hp=23ebb623948f9fee8bc9b6c27951fe92e28b1f33;hpb=21e4e939be5e7f02ca1fc1c25b1fd15caf60ae6d;p=lyx.git diff --git a/src/graphics/GraphicsLoader.cpp b/src/graphics/GraphicsLoader.cpp index 23ebb62394..36a6c06d2c 100644 --- a/src/graphics/GraphicsLoader.cpp +++ b/src/graphics/GraphicsLoader.cpp @@ -22,8 +22,9 @@ #include "support/bind.h" -#include #include +#include +#include using namespace std; using namespace lyx::support; @@ -77,7 +78,6 @@ static int const s_numimages_ = 10; static int const s_millisecs_ = 500; -// FIXME THREAD LoaderQueue & LoaderQueue::get() { static LoaderQueue singleton; @@ -159,9 +159,9 @@ void LoaderQueue::touch(Cache::ItemPtr const & item) // ///////////////////////////////////////////////////////////////////// -typedef shared_ptr ImagePtr; +typedef std::shared_ptr ImagePtr; -class Loader::Impl : public boost::signals::trackable { +class Loader::Impl : public boost::signals2::trackable { public: /// Impl(); @@ -187,9 +187,9 @@ public: /// We modify a local copy of the image once it is loaded. ImagePtr image_; /// This signal is emitted when the image loading status changes. - boost::signal signal_; + boost::signals2::signal signal_; /// The connection of the signal StatusChanged - boost::signals::connection sc_; + boost::signals2::connection sc_; double displayPixelRatio() const { @@ -347,7 +347,7 @@ void Loader::setDisplayPixelRatio(double scale) } -boost::signals::connection Loader::connect(slot_type const & slot) const +boost::signals2::connection Loader::connect(slot_type const & slot) const { return pimpl_->signal_.connect(slot); }