summaryrefslogtreecommitdiffstats
path: root/src/extension/internal/gdkpixbuf-input.cpp
diff options
context:
space:
mode:
authorJan Lingscheid <jan.linscheid@auticon.de>2017-10-16 11:28:28 +0000
committerJan Lingscheid <jan.lingscheid@auticon.de>2017-10-17 08:55:00 +0000
commit8ef37560aeca3d38db6603ca573929b19ea90105 (patch)
treeac3ffe8c35b5512d5cb7bf92c6517864d0546c43 /src/extension/internal/gdkpixbuf-input.cpp
parentRemove std::auto_ptr (diff)
downloadinkscape-8ef37560aeca3d38db6603ca573929b19ea90105.tar.gz
inkscape-8ef37560aeca3d38db6603ca573929b19ea90105.zip
Replace boost::scoped_ptr
This replaces all usage of boost::scoped_ptr with std::unique_ptr. Also removes the corresponding includes.
Diffstat (limited to 'src/extension/internal/gdkpixbuf-input.cpp')
-rw-r--r--src/extension/internal/gdkpixbuf-input.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/extension/internal/gdkpixbuf-input.cpp b/src/extension/internal/gdkpixbuf-input.cpp
index 7af7927f2..26e6531dd 100644
--- a/src/extension/internal/gdkpixbuf-input.cpp
+++ b/src/extension/internal/gdkpixbuf-input.cpp
@@ -2,7 +2,6 @@
#include <gdkmm/pixbuf.h>
#include <gdkmm/pixbufformat.h>
-#include <boost/scoped_ptr.hpp>
#include <glib/gprintf.h>
#include <glibmm/i18n.h>
#include "dir-util.h"
@@ -65,7 +64,7 @@ GdkpixbufInput::open(Inkscape::Extension::Input *mod, char const *uri)
bool embed = ( link.compare( "embed" ) == 0 );
SPDocument *doc = NULL;
- boost::scoped_ptr<Inkscape::Pixbuf> pb(Inkscape::Pixbuf::create_from_file(uri));
+ std::unique_ptr<Inkscape::Pixbuf> pb(Inkscape::Pixbuf::create_from_file(uri));
// TODO: the pixbuf is created again from the base64-encoded attribute in SPImage.
// Find a way to create the pixbuf only once.