diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/inc/pch/precompiled_tl.hxx | 1 | ||||
-rw-r--r-- | tools/source/fsys/urlobj.cxx | 6 |
2 files changed, 3 insertions, 4 deletions
diff --git a/tools/inc/pch/precompiled_tl.hxx b/tools/inc/pch/precompiled_tl.hxx index 2101b0c35527..c74b9b81b6fc 100644 --- a/tools/inc/pch/precompiled_tl.hxx +++ b/tools/inc/pch/precompiled_tl.hxx @@ -49,7 +49,6 @@ #include <list> #include <math.h> #include <new> -#include <o3tl/heap_ptr.hxx> #include <osl/diagnose.h> #include <osl/endian.h> #include <osl/file.hxx> diff --git a/tools/source/fsys/urlobj.cxx b/tools/source/fsys/urlobj.cxx index 91fffad7bc71..7e248a297643 100644 --- a/tools/source/fsys/urlobj.cxx +++ b/tools/source/fsys/urlobj.cxx @@ -20,7 +20,6 @@ #include <sal/config.h> #include <boost/checked_delete.hpp> -#include <o3tl/heap_ptr.hxx> #include <tools/urlobj.hxx> #include <tools/debug.hxx> #include <tools/inetmime.hxx> @@ -39,6 +38,7 @@ #include <algorithm> #include <limits> +#include <memory> #include <string.h> @@ -586,10 +586,10 @@ void INetURLObject::setInvalid() namespace { SvMemoryStream * memoryStream(void const * data, sal_Int32 length) { - o3tl::heap_ptr<char, boost::checked_array_deleter<char> > b( + std::unique_ptr<char, boost::checked_array_deleter<char> > b( new char[length]); memcpy(b.get(), data, length); - o3tl::heap_ptr<SvMemoryStream> s( + std::unique_ptr<SvMemoryStream> s( new SvMemoryStream(b.get(), length, STREAM_READ)); s->ObjectOwnsMemory(true); b.release(); |