diff options
author | David Tardon <dtardon@redhat.com> | 2017-07-29 19:16:36 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2017-07-29 19:16:36 +0200 |
commit | 6f04b3bd154968043b224fc0b7d8c2fbf0512ad9 (patch) | |
tree | df18abb1b986f604ababf681ad912e7999564e68 | |
parent | 2e3d261c7ce8ca27ca06c9920d6aa55c24f28794 (diff) |
boost::scoped_ptr -> std::unique_ptr
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | src/lib/SW602Document.cpp | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index ff0129a..d98bed5 100644 --- a/configure.ac +++ b/configure.ac @@ -62,7 +62,6 @@ AC_CHECK_HEADERS( boost/spirit/include/phoenix_operator.hpp \ boost/spirit/include/qi_core.hpp \ boost/spirit/include/qi_eol.hpp \ - boost/scoped_ptr.hpp \ boost/shared_ptr.hpp \ , [], diff --git a/src/lib/SW602Document.cpp b/src/lib/SW602Document.cpp index 62fd91d..91f7988 100644 --- a/src/lib/SW602Document.cpp +++ b/src/lib/SW602Document.cpp @@ -10,8 +10,8 @@ #include <libsw602/SW602Document.h> #include <cassert> +#include <memory> -#include <boost/scoped_ptr.hpp> #include <boost/shared_ptr.hpp> #include <librevenge-stream/librevenge-stream.h> @@ -111,7 +111,7 @@ SW602Document::Confidence SW602Document::isSupported(librevenge::RVNGInputStream { if (input->existsSubStream("CONTENTS")) { - const boost::scoped_ptr<RVNGInputStream> content(input->getSubStreamByName("CONTENTS")); + const std::unique_ptr<RVNGInputStream> content(input->getSubStreamByName("CONTENTS")); if (bool(content)) { if (probe<WinText602Header>(*content, info)) |