summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-09-30 10:17:20 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-09-30 13:35:43 +0100
commit66343a8aeb4328a61766e4df41515130290e8a93 (patch)
tree2a2dc7d5ca9bdbc01886e3d027b26009f9c40368 /include
parent78c83032b266fbb6fc20ddca86df80affaff7c24 (diff)
shared_array->unique_ptr<[]>
where we don't need to share the data Change-Id: I0edc9d62186d96095ee67e3c93f5cf186dffcb71
Diffstat (limited to 'include')
-rw-r--r--include/oox/helper/binaryoutputstream.hxx13
1 files changed, 4 insertions, 9 deletions
diff --git a/include/oox/helper/binaryoutputstream.hxx b/include/oox/helper/binaryoutputstream.hxx
index 49eb7e7e1cc1..bcceec379ffa 100644
--- a/include/oox/helper/binaryoutputstream.hxx
+++ b/include/oox/helper/binaryoutputstream.hxx
@@ -20,10 +20,8 @@
#ifndef INCLUDED_OOX_HELPER_BINARYOUTPUTSTREAM_HXX
#define INCLUDED_OOX_HELPER_BINARYOUTPUTSTREAM_HXX
-#include <memory>
-#include <boost/shared_array.hpp>
-
#include <oox/helper/binarystreambase.hxx>
+#include <memory>
namespace com { namespace sun { namespace star {
namespace io { class XOutputStream; }
@@ -103,14 +101,11 @@ void BinaryOutputStream::writeArray( Type* opnArray, sal_Int32 nElemCount )
template< typename Type >
void BinaryOutputStream::writeArray( const Type* opnArray, sal_Int32 nElemCount )
{
- boost::shared_array<Type> pArray(new Type[nElemCount]);
- std::uninitialized_copy(opnArray, opnArray + nElemCount, pArray.get());
- writeArray(pArray.get(), nElemCount);
+ std::unique_ptr<Type[]> xArray(new Type[nElemCount]);
+ std::uninitialized_copy(opnArray, opnArray + nElemCount, xArray.get());
+ writeArray(xArray.get(), nElemCount);
}
-
-
-
template< typename Type >
void BinaryOutputStream::writeValue( Type nValue )
{