From: Peter Kümmel Date: Sat, 19 Apr 2008 10:37:08 +0000 (+0000) Subject: use auto_ptr X-Git-Tag: 1.6.10~5116 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=25c08b9345c81cda20b0c337ed634c41bba7d65d;p=features.git use auto_ptr git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24347 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/qt4/GuiClipboard.cpp b/src/frontends/qt4/GuiClipboard.cpp index b82ad0733a..ad032181e2 100644 --- a/src/frontends/qt4/GuiClipboard.cpp +++ b/src/frontends/qt4/GuiClipboard.cpp @@ -53,8 +53,7 @@ #include #endif // Q_WS_WIN -#include - +#include #include using namespace std; @@ -171,7 +170,7 @@ QVector QWindowsMimeMetafile::formatsForMime( return formats; } -static boost::shared_ptr metafileWindowsMime; +static std::auto_ptr metafileWindowsMime; #endif // Q_WS_WIN @@ -236,7 +235,7 @@ QList QMacPasteboardMimeGraphics::convertFromMime(QString const & mi return ret; } -static boost::shared_ptr graphicsPasteboardMime; +static std::auto_ptr graphicsPasteboardMime; #endif // Q_WS_MACX @@ -249,17 +248,13 @@ GuiClipboard::GuiClipboard() on_dataChanged(); #ifdef Q_WS_MACX - if (!graphicsPasteboardMime) - graphicsPasteboardMime = - boost::shared_ptr - (new QMacPasteboardMimeGraphics()); + if (!graphicsPasteboardMime.get()) + graphicsPasteboardMime.reset(new QMacPasteboardMimeGraphics()); #endif // Q_WS_MACX #ifdef Q_WS_WIN - if (!metafileWindowsMime) - metafileWindowsMime = - boost::shared_ptr - (new QWindowsMimeMetafile()); + if (!metafileWindowsMime.get()) + metafileWindowsMime.reset(new QWindowsMimeMetafile()); #endif // Q_WS_WIN }