This is an automated email from the ASF dual-hosted git repository.

asf-gitbox-commits pushed a commit to branch compilers-101
in repository https://gitbox.apache.org/repos/asf/openoffice.git

commit 96ffb581196dffbe90a4088f9b0760fcaafc659b
Author: Pedro F. Giffuni <[email protected]>
AuthorDate: Thu Nov 5 22:30:13 2026 -0500

    Boost modernization Phase 2: scoped_array to std::unique_ptr<T[]>
    
    - Replace boost::scoped_array<T> / scoped_array<T> with std::unique_ptr<T[]>
      (C++11 array specialization, uses delete[])
    - Replace #include <boost/scoped_array.hpp> with #include <memory>
    - 34 files across extensions, cppcanvas, cppuhelper, desktop, jvmfwk, sc, 
sd,
      sdext, sfx2, slideshow, stoc, svx, sw, unoxml, vcl, xmloff, xmlsecurity
    
    boost::scoped_ptr, boost::array, boost::tuple were migrated in Phase 1.
    boost::function, boost::bind, boost::noncopyable, Boost.Optional,
    Boost.Variant, Boost.Spirit not migrated.
---
 main/canvas/source/cairo/cairo_textlayout.cxx      |  4 +-
 main/canvas/source/directx/dx_canvasbitmap.cxx     |  4 +-
 main/canvas/source/directx/dx_impltools.cxx        |  2 +-
 .../source/directx/dx_textlayout_drawhelper.cxx    |  4 +-
 main/canvas/source/directx/dx_vcltools.cxx         |  2 +-
 main/canvas/source/vcl/textlayout.cxx              |  8 ++--
 .../test/cppumaker/test_codemaker_cppumaker.cxx    |  4 +-
 main/cppcanvas/source/mtfrenderer/implrenderer.cxx |  4 +-
 main/cppcanvas/source/mtfrenderer/textaction.cxx   |  4 +-
 main/cppuhelper/source/tdmgr.cxx                   |  4 +-
 main/desktop/source/deployment/misc/dp_misc.cxx    |  4 +-
 main/desktop/source/migration/services/jvmfwk.cxx  |  2 +-
 main/desktop/source/migration/services/jvmfwk.hxx  |  2 +-
 main/desktop/source/pkgchk/unopkg/unopkg_app.cxx   |  2 +-
 main/extensions/inc/pch/precompiled_extensions.hxx |  2 +-
 main/extensions/source/ole/oleobjw.cxx             | 22 +++++-----
 .../source/ole/unoconversionutilities.hxx          |  8 ++--
 .../plugins/sunmajor/pluginlib/sunjavaplugin.cxx   |  2 +-
 main/jvmfwk/plugins/sunmajor/pluginlib/util.cxx    | 12 +++---
 main/jvmfwk/source/framework.cxx                   | 10 ++---
 main/sc/source/filter/excel/excimp8.cxx            |  4 +-
 main/sd/source/ui/app/sdmod1.cxx                   | 10 ++---
 main/sdext/source/pdfimport/wrapper/wrapper.cxx    |  4 +-
 main/sfx2/source/sidebar/SidebarController.cxx     |  2 +-
 .../source/engine/transitions/randomwipe.hxx       |  4 +-
 main/stoc/inc/pch/precompiled_stoc.hxx             |  2 +-
 main/stoc/source/invocation/invocation.cxx         |  4 +-
 main/stoc/source/javavm/javavm.cxx                 |  6 +--
 main/svx/source/sidebar/line/LinePropertyPanel.hxx | 50 +++++++++++-----------
 main/sw/source/filter/ww8/wrtw8sty.cxx             |  4 +-
 main/unoxml/source/dom/elementlist.hxx             |  6 +--
 main/vcl/source/gdi/image.cxx                      |  4 +-
 main/xmloff/source/text/txtimp.cxx                 | 34 +++++++--------
 .../xmlsec/nss/securityenvironment_nssimpl.cxx     |  4 +-
 34 files changed, 122 insertions(+), 122 deletions(-)

diff --git a/main/canvas/source/cairo/cairo_textlayout.cxx 
b/main/canvas/source/cairo/cairo_textlayout.cxx
index 5460426181..8f4be47079 100644
--- a/main/canvas/source/cairo/cairo_textlayout.cxx
+++ b/main/canvas/source/cairo/cairo_textlayout.cxx
@@ -55,7 +55,7 @@
 #include <basegfx/matrix/b2dhommatrix.hxx>
 #include <basegfx/numeric/ftools.hxx>
 
-#include <boost/scoped_array.hpp>
+#include <memory>
 
 #include "cairo_textlayout.hxx"
 #include "cairo_spritecanvas.hxx"
@@ -398,7 +398,7 @@ namespace cairocanvas
         setupLayoutMode( rOutDev, mnTextDirection );
 
         // TODO(P2): cache that
-        ::boost::scoped_array< sal_Int32 > aOffsets(new 
sal_Int32[maLogicalAdvancements.getLength()]);
+        ::std::unique_ptr< sal_Int32 []> aOffsets(new 
sal_Int32[maLogicalAdvancements.getLength()]);
 
         if( maLogicalAdvancements.getLength() )
         {
diff --git a/main/canvas/source/directx/dx_canvasbitmap.cxx 
b/main/canvas/source/directx/dx_canvasbitmap.cxx
index aec410a630..6e70dda012 100644
--- a/main/canvas/source/directx/dx_canvasbitmap.cxx
+++ b/main/canvas/source/directx/dx_canvasbitmap.cxx
@@ -33,7 +33,7 @@
 
 #include <boost/preprocessor/repetition.hpp>
 #include <boost/preprocessor/iteration/local.hpp>
-#include <boost/scoped_array.hpp>
+#include <memory>
 
 #include "dx_canvasbitmap.hxx"
 #include "dx_impltools.hxx"
@@ -216,7 +216,7 @@ namespace dxcanvas
 
                     // copy only alpha channel to pAlphaBits
                     const sal_Int32 nScanWidth((aSize.getX() + 3) & ~3);
-                    boost::scoped_array<sal_uInt8> pAlphaBits( new 
sal_uInt8[nScanWidth*aSize.getY()] );
+                    std::unique_ptr<sal_uInt8[]> pAlphaBits( new 
sal_uInt8[nScanWidth*aSize.getY()] );
                     const sal_uInt8* pInBits=(sal_uInt8*)aBmpData.Scan0;
                     pInBits+=3;
                     sal_uInt8* pOutBits;
diff --git a/main/canvas/source/directx/dx_impltools.cxx 
b/main/canvas/source/directx/dx_impltools.cxx
index f729263c22..40e1bcf795 100644
--- a/main/canvas/source/directx/dx_impltools.cxx
+++ b/main/canvas/source/directx/dx_impltools.cxx
@@ -54,7 +54,7 @@
 #include "dx_canvas.hxx"
 #include "dx_spritecanvas.hxx"
 
-#include <boost/scoped_array.hpp>
+#include <memory>
 
 #include <vector>
 #include <algorithm>
diff --git a/main/canvas/source/directx/dx_textlayout_drawhelper.cxx 
b/main/canvas/source/directx/dx_textlayout_drawhelper.cxx
index 1b5ab8f8f4..fbb8996329 100644
--- a/main/canvas/source/directx/dx_textlayout_drawhelper.cxx
+++ b/main/canvas/source/directx/dx_textlayout_drawhelper.cxx
@@ -32,7 +32,7 @@
 #include <vcl/canvastools.hxx>
 #include <tools/diagnose_ex.h>
 
-#include <boost/scoped_array.hpp>
+#include <memory>
 #include <boost/bind.hpp>
 #include <com/sun/star/rendering/FontRequest.hpp>
 #include <com/sun/star/rendering/PanoseProportion.hpp>
@@ -248,7 +248,7 @@ namespace dxcanvas
             {
                 // create the DXArray
                 const sal_Int32 nLen( rLogicalAdvancements.getLength() );
-                ::boost::scoped_array<sal_Int32> pDXArray( new sal_Int32[nLen] 
);
+                ::std::unique_ptr<sal_Int32[]> pDXArray( new sal_Int32[nLen] );
                 for( sal_Int32 i=0; i<nLen; ++i )
                     pDXArray[i] = basegfx::fround( rLogicalAdvancements[i] );
 
diff --git a/main/canvas/source/directx/dx_vcltools.cxx 
b/main/canvas/source/directx/dx_vcltools.cxx
index 284c7444aa..cc004d37f0 100644
--- a/main/canvas/source/directx/dx_vcltools.cxx
+++ b/main/canvas/source/directx/dx_vcltools.cxx
@@ -40,7 +40,7 @@
 #include <com/sun/star/lang/XServiceInfo.hpp>
 #include <com/sun/star/rendering/XIntegerBitmap.hpp>
 
-#include <boost/scoped_array.hpp>
+#include <memory>
 #include <memory>
 
 #include "dx_vcltools.hxx"
diff --git a/main/canvas/source/vcl/textlayout.cxx 
b/main/canvas/source/vcl/textlayout.cxx
index 99b8207c48..c7544d301d 100644
--- a/main/canvas/source/vcl/textlayout.cxx
+++ b/main/canvas/source/vcl/textlayout.cxx
@@ -41,7 +41,7 @@
 #include "impltools.hxx"
 #include "textlayout.hxx"
 
-#include <boost/scoped_array.hpp>
+#include <memory>
 
 
 using namespace ::com::sun::star;
@@ -127,7 +127,7 @@ namespace vclcanvas
             uno::Sequence<double>(4),
             rendering::CompositeOperation::SOURCE);
 
-        ::boost::scoped_array< sal_Int32 > aOffsets(new 
sal_Int32[maLogicalAdvancements.getLength()]);
+        ::std::unique_ptr< sal_Int32 []> aOffsets(new 
sal_Int32[maLogicalAdvancements.getLength()]);
         setupTextOffsets(aOffsets.get(), maLogicalAdvancements, aViewState, 
aRenderState);
 
         uno::Sequence< uno::Reference< rendering::XPolyPolygon2D> > 
aOutlineSequence;
@@ -180,7 +180,7 @@ namespace vclcanvas
             uno::Sequence<double>(4),
             rendering::CompositeOperation::SOURCE);
 
-        ::boost::scoped_array< sal_Int32 > aOffsets(new 
sal_Int32[maLogicalAdvancements.getLength()]);
+        ::std::unique_ptr< sal_Int32 []> aOffsets(new 
sal_Int32[maLogicalAdvancements.getLength()]);
         setupTextOffsets(aOffsets.get(), maLogicalAdvancements, aViewState, 
aRenderState);
 
         MetricVector aMetricVector;
@@ -392,7 +392,7 @@ namespace vclcanvas
         if( maLogicalAdvancements.getLength() )
         {
             // TODO(P2): cache that
-            ::boost::scoped_array< sal_Int32 > aOffsets(new 
sal_Int32[maLogicalAdvancements.getLength()]);
+            ::std::unique_ptr< sal_Int32 []> aOffsets(new 
sal_Int32[maLogicalAdvancements.getLength()]);
             setupTextOffsets( aOffsets.get(), maLogicalAdvancements, 
viewState, renderState );
 
             // TODO(F3): ensure correct length and termination for DX
diff --git a/main/codemaker/test/cppumaker/test_codemaker_cppumaker.cxx 
b/main/codemaker/test/cppumaker/test_codemaker_cppumaker.cxx
index f54e2d969d..1c1b808942 100644
--- a/main/codemaker/test/cppumaker/test_codemaker_cppumaker.cxx
+++ b/main/codemaker/test/cppumaker/test_codemaker_cppumaker.cxx
@@ -358,7 +358,7 @@
 #include "test/codemaker/cppumaker/TestException2.hpp"
 #include "test/codemaker/cppumaker/Constants.hpp"
 
-#include "boost/scoped_array.hpp"
+#include <memory>
 #include "com/sun/star/uno/Any.hxx"
 #include "com/sun/star/uno/Type.hxx"
 #include "com/sun/star/uno/TypeClass.hpp"
@@ -386,7 +386,7 @@ struct Guard {
 TEST(Test, testBigStruct) {
     // Default-initialize a BigStruct instance on top of a memory buffer filled
     // with random data, and make sure that all members are 
default-initialized:
-    boost::scoped_array< char > buffer(
+    std::unique_ptr< char []> buffer(
         new char[sizeof (test::codemaker::cppumaker::BigStruct)]);
     for (std::size_t i = 0; i < sizeof (test::codemaker::cppumaker::BigStruct);
          ++i)
diff --git a/main/cppcanvas/source/mtfrenderer/implrenderer.cxx 
b/main/cppcanvas/source/mtfrenderer/implrenderer.cxx
index b77a9ebbae..fcbb2ccdf1 100644
--- a/main/cppcanvas/source/mtfrenderer/implrenderer.cxx
+++ b/main/cppcanvas/source/mtfrenderer/implrenderer.cxx
@@ -84,7 +84,7 @@
 #include <vector>
 #include <algorithm>
 #include <iterator>
-#include <boost/scoped_array.hpp>
+#include <memory>
 #include "mtftools.hxx"
 #include "outdevstate.hxx"
 #include <basegfx/matrix/b2dhommatrixtools.hxx>
@@ -2674,7 +2674,7 @@ namespace cppcanvas
                         // generating a DX array, and uniformly
                         // distributing the excess/insufficient width
                         // to every logical character.
-                        ::boost::scoped_array< sal_Int32 > pDXArray( new 
sal_Int32[nLen] );
+                        ::std::unique_ptr< sal_Int32 []> pDXArray( new 
sal_Int32[nLen] );
 
                         rVDev.GetTextArray( pAct->GetText(), pDXArray.get(),
                                             pAct->GetIndex(), pAct->GetLen() );
diff --git a/main/cppcanvas/source/mtfrenderer/textaction.cxx 
b/main/cppcanvas/source/mtfrenderer/textaction.cxx
index 323deca099..42478f2a34 100644
--- a/main/cppcanvas/source/mtfrenderer/textaction.cxx
+++ b/main/cppcanvas/source/mtfrenderer/textaction.cxx
@@ -50,7 +50,7 @@
 #include <basegfx/tools/canvastools.hxx>
 #include <canvas/canvastools.hxx>
 
-#include <boost/scoped_array.hpp>
+#include <memory>
 #include <boost/bind.hpp>
 #include <boost/utility.hpp>
 
@@ -205,7 +205,7 @@ namespace cppcanvas
             {
                 // no external DX array given, create one from given
                 // string
-                ::boost::scoped_array< sal_Int32 > pCharWidths( new 
sal_Int32[nLen] );
+                ::std::unique_ptr< sal_Int32 []> pCharWidths( new 
sal_Int32[nLen] );
 
                 rVDev.GetTextArray( rText, pCharWidths.get(),
                                     static_cast<sal_uInt16>(nStartPos),
diff --git a/main/cppuhelper/source/tdmgr.cxx b/main/cppuhelper/source/tdmgr.cxx
index 63b37b29c4..fa07ff231e 100644
--- a/main/cppuhelper/source/tdmgr.cxx
+++ b/main/cppuhelper/source/tdmgr.cxx
@@ -55,7 +55,7 @@
 #include <com/sun/star/reflection/XUnionTypeDescription.hpp>
 #include "com/sun/star/uno/RuntimeException.hpp"
 
-#include "boost/scoped_array.hpp"
+#include <memory>
 
 using namespace ::rtl;
 using namespace ::com::sun::star;
@@ -422,7 +422,7 @@ inline static typelib_TypeDescription * createCTD(
         sal_Int32 nBases = aBases.getLength();
         // Exploit the fact that a typelib_TypeDescription for an interface 
type
         // is also the typelib_TypeDescriptionReference for that type:
-        boost::scoped_array< typelib_TypeDescription * > aBaseTypes(
+        std::unique_ptr< typelib_TypeDescription * []> aBaseTypes(
             new typelib_TypeDescription *[nBases]);
         {for (sal_Int32 i = 0; i < nBases; ++i) {
             typelib_TypeDescription * p = createCTD(access, aBases[i]);
diff --git a/main/desktop/source/deployment/misc/dp_misc.cxx 
b/main/desktop/source/deployment/misc/dp_misc.cxx
index 7364a68ddc..cb9018f053 100644
--- a/main/desktop/source/deployment/misc/dp_misc.cxx
+++ b/main/desktop/source/deployment/misc/dp_misc.cxx
@@ -44,7 +44,7 @@
 #include "com/sun/star/bridge/XUnoUrlResolver.hpp"
 #include "com/sun/star/deployment/ExtensionManager.hpp"
 #include "com/sun/star/task/XRestartManager.hpp"
-#include "boost/scoped_array.hpp"
+#include <memory>
 #include "boost/shared_ptr.hpp"
 #include <comphelper/processfactory.hxx>
 #include <memory>
@@ -113,7 +113,7 @@ const OUString OfficePipeId::operator () ()
         reinterpret_cast<sal_uInt8 const *>(userPath.getStr());
     sal_Size size = (userPath.getLength() * sizeof (sal_Unicode));
     sal_uInt32 md5_key_len = rtl_digest_queryLength( digest );
-    ::boost::scoped_array<sal_uInt8> md5_buf( new sal_uInt8 [ md5_key_len ] );
+    ::std::unique_ptr<sal_uInt8[]> md5_buf( new sal_uInt8 [ md5_key_len ] );
 
     rtl_digest_init( digest, data, static_cast<sal_uInt32>(size) );
     rtl_digest_update( digest, data, static_cast<sal_uInt32>(size) );
diff --git a/main/desktop/source/migration/services/jvmfwk.cxx 
b/main/desktop/source/migration/services/jvmfwk.cxx
index 24279a9801..ecb05d91b4 100644
--- a/main/desktop/source/migration/services/jvmfwk.cxx
+++ b/main/desktop/source/migration/services/jvmfwk.cxx
@@ -32,7 +32,7 @@
 #include "rtl/bootstrap.hxx"
 #include "sal/types.h"
 #include "sal/config.h"
-#include "boost/scoped_array.hpp"
+#include <memory>
 #include "com/sun/star/lang/XServiceInfo.hpp"
 #include "com/sun/star/lang/XInitialization.hpp"
 #include "com/sun/star/lang/WrappedTargetException.hpp"
diff --git a/main/desktop/source/migration/services/jvmfwk.hxx 
b/main/desktop/source/migration/services/jvmfwk.hxx
index ae09ccbd97..6f1c5a0375 100644
--- a/main/desktop/source/migration/services/jvmfwk.hxx
+++ b/main/desktop/source/migration/services/jvmfwk.hxx
@@ -27,7 +27,7 @@
 #include "rtl/ustring.h"
 #include "rtl/ustring.hxx"
 #include "sal/types.h"
-#include "boost/scoped_array.hpp"
+#include <memory>
 #include "com/sun/star/lang/XServiceInfo.hpp"
 #include "com/sun/star/lang/XInitialization.hpp"
 #include "com/sun/star/task/XJob.hpp"
diff --git a/main/desktop/source/pkgchk/unopkg/unopkg_app.cxx 
b/main/desktop/source/pkgchk/unopkg/unopkg_app.cxx
index e5cfdbd564..0e3ccce982 100644
--- a/main/desktop/source/pkgchk/unopkg/unopkg_app.cxx
+++ b/main/desktop/source/pkgchk/unopkg/unopkg_app.cxx
@@ -45,7 +45,7 @@
 #include "com/sun/star/deployment/ui/PackageManagerDialog.hpp"
 #include "com/sun/star/ui/dialogs/XExecutableDialog.hpp"
 #include "com/sun/star/lang/DisposedException.hpp"
-#include "boost/scoped_array.hpp"
+#include <memory>
 #include "com/sun/star/ui/dialogs/XDialogClosedListener.hpp"
 #include "com/sun/star/bridge/XBridgeFactory.hpp"
 #include <stdio.h>
diff --git a/main/extensions/inc/pch/precompiled_extensions.hxx 
b/main/extensions/inc/pch/precompiled_extensions.hxx
index 316a88d126..9ae07cd1cb 100644
--- a/main/extensions/inc/pch/precompiled_extensions.hxx
+++ b/main/extensions/inc/pch/precompiled_extensions.hxx
@@ -30,7 +30,7 @@
 #include "sal/types.h"
 
 
-#include "boost/scoped_array.hpp"
+#include <memory>
 #include "boost/shared_ptr.hpp"
 
 #include "com/sun/star/awt/FocusChangeReason.hpp"
diff --git a/main/extensions/source/ole/oleobjw.cxx 
b/main/extensions/source/ole/oleobjw.cxx
index c0ed6f7a2e..e52ae61dee 100644
--- a/main/extensions/source/ole/oleobjw.cxx
+++ b/main/extensions/source/ole/oleobjw.cxx
@@ -31,7 +31,7 @@
 #include "osl/doublecheckedlocking.h"
 #include "osl/thread.h"
 
-#include "boost/scoped_array.hpp"
+#include <memory>
 #include <com/sun/star/script/FailReason.hpp>
 #include <com/sun/star/beans/XMaterialHolder.hpp>
 #include <com/sun/star/script/XTypeConverter.hpp>
@@ -739,8 +739,8 @@ Any  IUnknownWrapper_Impl::invokeWithDispIdUnoTlb(const 
OUString& sFunctionName,
        // Then out and in/out parameters have to be treated differently than
        // with common COM objects.
        sal_Bool bJScriptObject= isJScriptObject();
-    scoped_array<CComVariant> sarParams;
-    scoped_array<CComVariant> sarParamsRef;
+    std::unique_ptr<CComVariant[]> sarParams;
+    std::unique_ptr<CComVariant[]> sarParamsRef;
        CComVariant *pVarParams= NULL;
        CComVariant *pVarParamsRef= NULL;
        sal_Bool bConvRet= sal_True;
@@ -1278,9 +1278,9 @@ uno::Any SAL_CALL IUnknownWrapper_Impl::directInvoke( 
const ::rtl::OUString& aNa
         DISPPARAMS             dispparams = {NULL, NULL, 0, 0};
 
         DISPID idPropertyPut = DISPID_PROPERTYPUT;
-        scoped_array<DISPID> arDispidNamedArgs;
-        scoped_array<CComVariant> ptrArgs;
-        scoped_array<CComVariant> ptrRefArgs; // referenced arguments
+        std::unique_ptr<DISPID[]> arDispidNamedArgs;
+        std::unique_ptr<CComVariant[]> ptrArgs;
+        std::unique_ptr<CComVariant[]> ptrRefArgs; // referenced arguments
         CComVariant * arArgs = NULL;
         CComVariant * arRefArgs = NULL;
         bool bVarargParam = false;
@@ -1300,7 +1300,7 @@ uno::Any SAL_CALL IUnknownWrapper_Impl::directInvoke( 
const ::rtl::OUString& aNa
             if ( pInvkinds[nStep] == INVOKE_PROPERTYPUT )
                 nSizeAr = dispparams.cNamedArgs;
 
-            scoped_array<OLECHAR*> saNames(new OLECHAR*[nSizeAr]);
+            std::unique_ptr<OLECHAR*[]> saNames(new OLECHAR*[nSizeAr]);
             OLECHAR ** pNames = saNames.get();
             pNames[0] = 
const_cast<OLECHAR*>(reinterpret_cast<LPCOLESTR>(aName.getStr()));
 
@@ -1655,9 +1655,9 @@ Any  IUnknownWrapper_Impl::invokeWithDispIdComTlb(const 
OUString& sFuncName,
        sal_Int32       i = 0;
     sal_Int32 nUnoArgs = Params.getLength();
     DISPID idPropertyPut = DISPID_PROPERTYPUT;
-       scoped_array<DISPID> arDispidNamedArgs;
-       scoped_array<CComVariant> ptrArgs;
-       scoped_array<CComVariant> ptrRefArgs; // referenced arguments
+       std::unique_ptr<DISPID[]> arDispidNamedArgs;
+       std::unique_ptr<CComVariant[]> ptrArgs;
+       std::unique_ptr<CComVariant[]> ptrRefArgs; // referenced arguments
     CComVariant * arArgs = NULL;
     CComVariant * arRefArgs = NULL;
     sal_Int32 revIndex = 0;
@@ -1736,7 +1736,7 @@ Any  IUnknownWrapper_Impl::invokeWithDispIdComTlb(const 
OUString& sFuncName,
             nSizeAr = dispparams.cNamedArgs; //counts the DISID_PROPERTYPUT
         }
 
-        scoped_array<OLECHAR*> saNames(new OLECHAR*[nSizeAr]);
+        std::unique_ptr<OLECHAR*[]> saNames(new OLECHAR*[nSizeAr]);
         OLECHAR ** arNames = saNames.get();
         arNames[0] = 
const_cast<OLECHAR*>(reinterpret_cast<LPCOLESTR>(sFuncName.getStr()));
 
diff --git a/main/extensions/source/ole/unoconversionutilities.hxx 
b/main/extensions/source/ole/unoconversionutilities.hxx
index 6aa4dda4bc..f13dbfb4d7 100644
--- a/main/extensions/source/ole/unoconversionutilities.hxx
+++ b/main/extensions/source/ole/unoconversionutilities.hxx
@@ -23,7 +23,7 @@
 #ifndef _UNO_CONVERSION_UTILITIES
 #define _UNO_CONVERSION_UTILITIES
 
-#include "boost/scoped_array.hpp"
+#include <memory>
 #include "com/sun/star/script/XInvocationAdapterFactory.hpp"
 #include "com/sun/star/script/XInvocationAdapterFactory2.hpp"
 #include "com/sun/star/script/XTypeConverter.hpp"
@@ -1054,7 +1054,7 @@ SAFEARRAY*  
UnoConversionUtilities<T>::createUnoSequenceWrapper(const Any& rSeq,
        if( elementTypeDesc.is() )
        {
                // set up the SAFEARRAY
-        scoped_array<SAFEARRAYBOUND> sarSafeArrayBound(new 
SAFEARRAYBOUND[dims]);
+        std::unique_ptr<SAFEARRAYBOUND[]> sarSafeArrayBound(new 
SAFEARRAYBOUND[dims]);
                SAFEARRAYBOUND* prgsabound= sarSafeArrayBound.get();
                for( sal_Int32 i=0; i < dims; i++)
                {
@@ -1085,7 +1085,7 @@ SAFEARRAY*  
UnoConversionUtilities<T>::createUnoSequenceWrapper(const Any& rSeq,
                                // In this case arDimSeqIndices would have the 
size 1. That is the elements are not counted
                                // but the Sequences that contain those 
elements.
                                // The indices ar 0 based
-                scoped_array<sal_Int32> sarDimsSeqIndices;
+                std::unique_ptr<sal_Int32[]> sarDimsSeqIndices;
                                sal_Int32* arDimsSeqIndices= NULL;
                                if( dimsSeq > 0)
                                {
@@ -2254,7 +2254,7 @@ Sequence<Any> 
UnoConversionUtilities<T>::createOleArrayWrapper(SAFEARRAY* pArray
 
        if (dim > 0)
        {
-        scoped_array<long> sarIndex(new long[dim]);
+        std::unique_ptr<long[]> sarIndex(new long[dim]);
                long * index =  sarIndex.get();
 
                for (unsigned int i = 0; i < dim; i++)
diff --git a/main/jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx 
b/main/jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx
index 40be556bc6..45ec96fcc7 100644
--- a/main/jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx
+++ b/main/jvmfwk/plugins/sunmajor/pluginlib/sunjavaplugin.cxx
@@ -28,7 +28,7 @@
 #endif
 #include <string.h>
 
-#include "boost/scoped_array.hpp"
+#include <memory>
 #include "osl/diagnose.h"
 #include "rtl/ustring.hxx"
 #include "rtl/ustrbuf.hxx"
diff --git a/main/jvmfwk/plugins/sunmajor/pluginlib/util.cxx 
b/main/jvmfwk/plugins/sunmajor/pluginlib/util.cxx
index fbeb1ef201..3a959a12b5 100644
--- a/main/jvmfwk/plugins/sunmajor/pluginlib/util.cxx
+++ b/main/jvmfwk/plugins/sunmajor/pluginlib/util.cxx
@@ -34,7 +34,7 @@
 #include "rtl/byteseq.hxx"
 #include "rtl/ustrbuf.hxx"
 #include "rtl/instance.hxx"
-#include "boost/scoped_array.hpp"
+#include <memory>
 #include "com/sun/star/uno/Sequence.hxx"
 #include <utility>
 #include <algorithm>
@@ -295,7 +295,7 @@ FileHandleReader::readLine(rtl::OString * pLine)
 class AsynchReader: public Thread
 {
     size_t  m_nDataSize;
-    boost::scoped_array<sal_Char> m_arData;
+    std::unique_ptr<sal_Char[]> m_arData;
 
     bool m_bError;
     bool m_bDone;
@@ -356,7 +356,7 @@ void AsynchReader::run()
         else if (nRead <= BUFFER_SIZE)
         {
             //Save the data we have in m_arData into a temporary array
-            boost::scoped_array<sal_Char> arTmp( new sal_Char[m_nDataSize]);
+            std::unique_ptr<sal_Char[]> arTmp( new sal_Char[m_nDataSize]);
             memcpy(arTmp.get(), m_arData.get(), m_nDataSize);
             //Enlarge m_arData to hold the newly read data
             m_arData.reset(new sal_Char[(size_t)(m_nDataSize + nRead)]);
@@ -1174,21 +1174,21 @@ void 
createJavaInfoDirScan(vector<rtl::Reference<VendorBase> >& vecInfos)
     OUString excMessage = OUSTR("[Java framework] sunjavaplugin: "
                                 "Error in function createJavaInfoDirScan in 
util.cxx.");
     int cJavaNames= sizeof(g_arJavaNames) / sizeof(char*);
-    boost::scoped_array<OUString> sarJavaNames(new OUString[cJavaNames]);
+    std::unique_ptr<OUString[]> sarJavaNames(new OUString[cJavaNames]);
     OUString *arNames = sarJavaNames.get();
     for(int i= 0; i < cJavaNames; i++)
         arNames[i] = OUString(g_arJavaNames[i], strlen(g_arJavaNames[i]),
                               RTL_TEXTENCODING_UTF8);
 
     int cSearchPaths= sizeof(g_arSearchPaths) / sizeof(g_arSearchPaths[0]);
-    boost::scoped_array<OUString> sarPathNames(new OUString[cSearchPaths]);
+    std::unique_ptr<OUString[]> sarPathNames(new OUString[cSearchPaths]);
     OUString *arPaths = sarPathNames.get();
     for(int c = 0; c < cSearchPaths; c++)
         arPaths[c] = OUString(g_arSearchPaths[c].path, 
strlen(g_arSearchPaths[c].path),
                                RTL_TEXTENCODING_UTF8);
 
     int cCollectDirs = sizeof(g_arCollectDirs) / sizeof(char*);
-    boost::scoped_array<OUString> sarCollectDirs(new OUString[cCollectDirs]);
+    std::unique_ptr<OUString[]> sarCollectDirs(new OUString[cCollectDirs]);
     OUString *arCollectDirs = sarCollectDirs.get();
     for(int d = 0; d < cCollectDirs; d++)
         arCollectDirs[d] = OUString(g_arCollectDirs[d], 
strlen(g_arCollectDirs[d]),
diff --git a/main/jvmfwk/source/framework.cxx b/main/jvmfwk/source/framework.cxx
index b79f779a66..0005e08faf 100644
--- a/main/jvmfwk/source/framework.cxx
+++ b/main/jvmfwk/source/framework.cxx
@@ -23,7 +23,7 @@
 
 // MARKER(update_precomp.py): autogen include statement, do not remove
 #include "precompiled_jvmfwk.hxx"
-#include "boost/scoped_array.hpp"
+#include <memory>
 #include "rtl/ustring.hxx"
 #include "rtl/bootstrap.hxx"
 #include "osl/thread.hxx"
@@ -76,7 +76,7 @@ javaFrameworkError SAL_CALL jfw_findAllJREs(JavaInfo 
***pparInfo, sal_Int32 *pSi
 
         //Create a vector that holds the libraries, which will be later
         //dynamically loaded;
-        boost::scoped_array<osl::Module> sarModules;
+        std::unique_ptr<osl::Module[]> sarModules;
         sarModules.reset(new osl::Module[vecPlugins.size()]);
         osl::Module * arModules = sarModules.get();
                //Add the JavaInfos found by jfw_plugin_getAllJavaInfos to the 
vector
@@ -361,7 +361,7 @@ javaFrameworkError SAL_CALL jfw_startVM(JavaVMOption 
*arOptions, sal_Int32 cOpti
                // create JavaVMOptions array that is passed to the plugin
                // it contains the classpath and all options set in the
                //options dialog
-               boost::scoped_array<JavaVMOption> sarJOptions(
+               std::unique_ptr<JavaVMOption[]> sarJOptions(
             new JavaVMOption[cOptions + 2 + vmParams.size()]);
                JavaVMOption * arOpt = sarJOptions.get();
                if (! arOpt)
@@ -449,7 +449,7 @@ javaFrameworkError SAL_CALL jfw_findAndSelectJRE(JavaInfo 
**pInfo)
                        aVendorSettings.getPluginData();
         //Create a vector that holds the libraries, which will be later
         //dynamically loaded;
-        boost::scoped_array<osl::Module> sarModules;
+        std::unique_ptr<osl::Module[]> sarModules;
         sarModules.reset(new osl::Module[vecPlugins.size()]);
         osl::Module * arModules = sarModules.get();
 
@@ -748,7 +748,7 @@ javaFrameworkError SAL_CALL jfw_getJavaInfoByPath(
                        aVendorSettings.getPluginData();
         //Create a vector that holds the libraries, which will be later
         //dynamically loaded;
-        boost::scoped_array<osl::Module> sarModules;
+        std::unique_ptr<osl::Module[]> sarModules;
         sarModules.reset(new osl::Module[vecPlugins.size()]);
         osl::Module * arModules = sarModules.get();
 
diff --git a/main/sc/source/filter/excel/excimp8.cxx 
b/main/sc/source/filter/excel/excimp8.cxx
index 8fcc805a7d..d29f890645 100644
--- a/main/sc/source/filter/excel/excimp8.cxx
+++ b/main/sc/source/filter/excel/excimp8.cxx
@@ -68,7 +68,7 @@
 #include <unotools/charclass.hxx>
 #include <drwlayer.hxx>
 
-#include <boost/scoped_array.hpp>
+#include <memory>
 
 #include "cell.hxx"
 #include "document.hxx"
@@ -642,7 +642,7 @@ void XclImpAutoFilterData::Apply( const sal_Bool 
bUseUnNamed )
 //        SCROW nRow1 = StartRow();
 //        SCROW nRow2 = EndRow();
 //        size_t nRows = nRow2 - nRow1 + 1;
-//        boost::scoped_array<sal_uInt8> pFlags( new sal_uInt8[nRows]);
+//        std::unique_ptr<sal_uInt8[]> pFlags( new sal_uInt8[nRows]);
 //        pExcRoot->pDoc->GetRowFlagsArray( Tab()).FillDataArray( nRow1, nRow2,
 //                pFlags.get());
 //        for (size_t j=0; j<nRows; ++j)
diff --git a/main/sd/source/ui/app/sdmod1.cxx b/main/sd/source/ui/app/sdmod1.cxx
index 50ec2a6c52..2f6f2b322f 100644
--- a/main/sd/source/ui/app/sdmod1.cxx
+++ b/main/sd/source/ui/app/sdmod1.cxx
@@ -71,7 +71,7 @@
 #include "sdabstdlg.hxx"
 #include <memory>
 #include <memory>
-#include <boost/scoped_array.hpp>
+#include <memory>
 #include "slideshow.hxx"
 
 #include <com/sun/star/document/XDocumentPropertiesSupplier.hpp>
@@ -588,7 +588,7 @@ SfxFrame* SdModule::ExecuteNewDocument( SfxRequest& rReq )
                else
                {
                        SdAbstractDialogFactory* pFact = 
SdAbstractDialogFactory::Create();
-                       std::unique_ptr< AbstractAssistentDlg > pPilotDlg( 
pFact ? pFact->CreateAssistentDlg( NULL, !bNewDocDirect ) : 0 );
+                       std::unique_ptr< AbstractAssistentDlg []> pPilotDlg( 
pFact ? pFact->CreateAssistentDlg( NULL, !bNewDocDirect ) : 0 );
 
                        // Open the Pilot
                        if(     pPilotDlg.get() && pPilotDlg->Execute()==RET_OK 
)
@@ -658,7 +658,7 @@ SfxFrame* SdModule::ExecuteNewDocument( SfxRequest& rReq )
                                        
pOpt->SetStartWithTemplate(bStartWithTemplate);
                                        if(bNewDocDirect && !bStartWithTemplate)
                                        {
-                                               std::unique_ptr< SfxItemSet > 
pRet( CreateItemSet( SID_SD_EDITOPTIONS ) );
+                                               std::unique_ptr< SfxItemSet []> 
pRet( CreateItemSet( SID_SD_EDITOPTIONS ) );
                                                if(pRet.get())
                                                        ApplyItemSet( 
SID_SD_EDITOPTIONS, *pRet.get() );
 
@@ -676,7 +676,7 @@ SfxFrame* SdModule::ExecuteNewDocument( SfxRequest& rReq )
 
                                                if(bNewDocDirect && 
!bStartWithTemplate)
                                                {
-                                                       std::unique_ptr< 
SfxItemSet > pRet( CreateItemSet( SID_SD_EDITOPTIONS ) );
+                                                       std::unique_ptr< 
SfxItemSet []> pRet( CreateItemSet( SID_SD_EDITOPTIONS ) );
                                                        if(pRet.get())
                                                                ApplyItemSet( 
SID_SD_EDITOPTIONS, *pRet.get() );
                                                }
@@ -954,7 +954,7 @@ OutlineToImpressFinalizer::OutlineToImpressFinalizer (
                // the original stream.
                mpStream.reset(new SvMemoryStream());
                static const sal_Size nBufferSize = 4096;
-               ::boost::scoped_array<sal_Int8> pBuffer (new 
sal_Int8[nBufferSize]);
+               ::std::unique_ptr<sal_Int8[]> pBuffer (new 
sal_Int8[nBufferSize]);
 
                sal_Size nReadPosition (0);
                bool bLoop (true);
diff --git a/main/sdext/source/pdfimport/wrapper/wrapper.cxx 
b/main/sdext/source/pdfimport/wrapper/wrapper.cxx
index 9f2909a96f..b20c10c801 100644
--- a/main/sdext/source/pdfimport/wrapper/wrapper.cxx
+++ b/main/sdext/source/pdfimport/wrapper/wrapper.cxx
@@ -62,7 +62,7 @@
 #include <boost/bind.hpp>
 #include <boost/preprocessor/stringize.hpp>
 #include <memory>
-#include <boost/scoped_array.hpp>
+#include <memory>
 
 #include <unordered_map>
 #include <string.h>
@@ -919,7 +919,7 @@ static bool checkEncryption( const rtl::OUString&
     aPDFFile = rtl::OUStringToOString( i_rPath, osl_getThreadTextEncoding() );
 
     pdfparse::PDFReader aParser;
-    std::unique_ptr<pdfparse::PDFEntry> pEntry( aParser.read( 
aPDFFile.getStr() ));
+    std::unique_ptr<pdfparse::PDFEntry[]> pEntry( aParser.read( 
aPDFFile.getStr() ));
     if( pEntry )
     {
         pdfparse::PDFFile* pPDFFile = 
dynamic_cast<pdfparse::PDFFile*>(pEntry.get());
diff --git a/main/sfx2/source/sidebar/SidebarController.cxx 
b/main/sfx2/source/sidebar/SidebarController.cxx
index 524e74c11e..05321b21ca 100644
--- a/main/sfx2/source/sidebar/SidebarController.cxx
+++ b/main/sfx2/source/sidebar/SidebarController.cxx
@@ -64,7 +64,7 @@
 
 #include <boost/bind.hpp>
 #include <boost/function.hpp>
-#include <boost/scoped_array.hpp>
+#include <memory>
 #include <memory>
 #include <functional>
 
diff --git a/main/slideshow/source/engine/transitions/randomwipe.hxx 
b/main/slideshow/source/engine/transitions/randomwipe.hxx
index 81f0f43976..fc59d4029b 100644
--- a/main/slideshow/source/engine/transitions/randomwipe.hxx
+++ b/main/slideshow/source/engine/transitions/randomwipe.hxx
@@ -26,7 +26,7 @@
 
 #include <basegfx/polygon/b2dpolygon.hxx>
 #include <basegfx/point/b2dpoint.hxx>
-#include <boost/scoped_array.hpp>
+#include <memory>
 
 #include "parametricpolypolygon.hxx"
 #include "transitiontools.hxx"
@@ -43,7 +43,7 @@ public:
                                    false: generates a dissolve wipe */ );
     virtual ::basegfx::B2DPolyPolygon operator () ( double t );
 private:
-    ::boost::scoped_array< ::basegfx::B2DPoint > m_positions;
+    ::std::unique_ptr< ::basegfx::B2DPoint []> m_positions;
     sal_Int32 m_nElements;
     ::basegfx::B2DPolygon m_rect;
 };
diff --git a/main/stoc/inc/pch/precompiled_stoc.hxx 
b/main/stoc/inc/pch/precompiled_stoc.hxx
index 6a6749ae81..0597bd4426 100644
--- a/main/stoc/inc/pch/precompiled_stoc.hxx
+++ b/main/stoc/inc/pch/precompiled_stoc.hxx
@@ -32,7 +32,7 @@
 #include "sal/main.h"
 #include "sal/types.h"
 
-#include "boost/scoped_array.hpp"
+#include <memory>
 
 #include "com/sun/star/beans/IllegalTypeException.hpp"
 #include "com/sun/star/beans/MethodConcept.hpp"
diff --git a/main/stoc/source/invocation/invocation.cxx 
b/main/stoc/source/invocation/invocation.cxx
index a6bf435de3..9f9b727622 100644
--- a/main/stoc/source/invocation/invocation.cxx
+++ b/main/stoc/source/invocation/invocation.cxx
@@ -57,7 +57,7 @@
 #include <com/sun/star/lang/XTypeProvider.hpp>
 #include <com/sun/star/registry/XRegistryKey.hpp>
 
-#include <boost/scoped_array.hpp>
+#include <memory>
 #include <rtl/ustrbuf.hxx>
 #include <rtl/strbuf.hxx>
 
@@ -778,7 +778,7 @@ void Invocation_Impl::getInfoSequenceImpl
        sal_Int32 nTotalCount = nNameAccessCount + nPropertyCount + 
nMethodCount;
 
        // Create and fill array of MemberItems
-    boost::scoped_array< MemberItem > pItems( new MemberItem[ nTotalCount ] );
+    std::unique_ptr< MemberItem []> pItems( new MemberItem[ nTotalCount ] );
        const OUString* pStrings = aNameAccessNames.getConstArray();
        const Property* pProps = aPropertySeq.getConstArray();
        const Reference< XIdlMethod >* pMethods = aMethodSeq.getConstArray();
diff --git a/main/stoc/source/javavm/javavm.cxx 
b/main/stoc/source/javavm/javavm.cxx
index 21c918562f..ba3fc3043a 100644
--- a/main/stoc/source/javavm/javavm.cxx
+++ b/main/stoc/source/javavm/javavm.cxx
@@ -84,7 +84,7 @@
 #include <time.h>
 #include <memory>
 #include <vector>
-#include "boost/scoped_array.hpp"
+#include <memory>
 #define OUSTR(x) rtl::OUString(RTL_CONSTASCII_USTRINGPARAM( x ))
 
 // Properties of the javavm can be put
@@ -753,12 +753,12 @@ JavaVirtualMachine::getJavaVM(css::uno::Sequence< 
sal_Int8 > const & rProcessId)
                             m_xContext);
         //Create the JavaVMOption array
         const std::vector<rtl::OUString> & props = aJvm.getProperties();
-        boost::scoped_array<JavaVMOption> sarOptions(
+        std::unique_ptr<JavaVMOption[]> sarOptions(
             new JavaVMOption[props.size()]);
         JavaVMOption * arOptions = sarOptions.get();
         //Create an array that contains the strings which are passed
         //into the options
-        boost::scoped_array<rtl::OString> sarPropStrings(
+        std::unique_ptr<rtl::OString[]> sarPropStrings(
              new rtl::OString[props.size()]);
         rtl::OString * arPropStrings = sarPropStrings.get();
 
diff --git a/main/svx/source/sidebar/line/LinePropertyPanel.hxx 
b/main/svx/source/sidebar/line/LinePropertyPanel.hxx
index 7191be9712..d3aa8b94e9 100644
--- a/main/svx/source/sidebar/line/LinePropertyPanel.hxx
+++ b/main/svx/source/sidebar/line/LinePropertyPanel.hxx
@@ -30,7 +30,7 @@
 #include <vcl/fixed.hxx>
 #include <vcl/field.hxx>
 #include <memory>
-#include <boost/scoped_array.hpp>
+#include <memory>
 #include <svx/sidebar/ColorPopup.hxx>
 #include <memory>
 #include "LineWidthPopup.hxx"
@@ -98,23 +98,23 @@ public:
 
 private:
     //ui controls
-    ::std::unique_ptr< FixedText >                        mpFTWidth;
-    ::std::unique_ptr< Window >                           mpTBWidthBackground;
-    ::std::unique_ptr< ToolBox >                          mpTBWidth;
-    ::std::unique_ptr< FixedText >                        mpFTColor;
-    ::std::unique_ptr< Window >                           mpTBColorBackground;
-    ::std::unique_ptr< ToolBox >                          mpTBColor;
-    ::std::unique_ptr< FixedText >                        mpFTStyle;
-    ::std::unique_ptr< ListBox >                          mpLBStyle;
-    ::std::unique_ptr< FixedText >                        mpFTTrancparency;
-    ::std::unique_ptr< MetricField >                      mpMFTransparent;
-    ::std::unique_ptr< FixedText >                        mpFTArrow;
-    ::std::unique_ptr< ListBox >                          mpLBStart;
-    ::std::unique_ptr< ListBox >                          mpLBEnd;
-    ::std::unique_ptr< FixedText >                        mpFTEdgeStyle;
-    ::std::unique_ptr< ListBox >                          mpLBEdgeStyle;
-    ::std::unique_ptr< FixedText >                        mpFTCapStyle;
-    ::std::unique_ptr< ListBox >                          mpLBCapStyle;
+    ::std::unique_ptr< FixedText []>                        mpFTWidth;
+    ::std::unique_ptr< Window []>                           
mpTBWidthBackground;
+    ::std::unique_ptr< ToolBox []>                          mpTBWidth;
+    ::std::unique_ptr< FixedText []>                        mpFTColor;
+    ::std::unique_ptr< Window []>                           
mpTBColorBackground;
+    ::std::unique_ptr< ToolBox []>                          mpTBColor;
+    ::std::unique_ptr< FixedText []>                        mpFTStyle;
+    ::std::unique_ptr< ListBox []>                          mpLBStyle;
+    ::std::unique_ptr< FixedText []>                        mpFTTrancparency;
+    ::std::unique_ptr< MetricField []>                      mpMFTransparent;
+    ::std::unique_ptr< FixedText []>                        mpFTArrow;
+    ::std::unique_ptr< ListBox []>                          mpLBStart;
+    ::std::unique_ptr< ListBox []>                          mpLBEnd;
+    ::std::unique_ptr< FixedText []>                        mpFTEdgeStyle;
+    ::std::unique_ptr< ListBox []>                          mpLBEdgeStyle;
+    ::std::unique_ptr< FixedText []>                        mpFTCapStyle;
+    ::std::unique_ptr< ListBox []>                          mpLBCapStyle;
 
     //ControllerItem
     ::sfx2::sidebar::ControllerItem                         maStyleControl;
@@ -130,16 +130,16 @@ private:
     ::sfx2::sidebar::ControllerItem                         maCapStyle;
 
     Color                                                   maColor;
-    ::std::unique_ptr< ::svx::ToolboxButtonColorUpdater > mpColorUpdater;
-    ::std::unique_ptr< XLineStyleItem >                   mpStyleItem;
-    ::std::unique_ptr< XLineDashItem >                    mpDashItem;
+    ::std::unique_ptr< ::svx::ToolboxButtonColorUpdater []> mpColorUpdater;
+    ::std::unique_ptr< XLineStyleItem []>                   mpStyleItem;
+    ::std::unique_ptr< XLineDashItem []>                    mpDashItem;
     sal_uInt16                                              mnTrans;
     SfxMapUnit                                              meMapUnit;
     sal_Int32                                               mnWidthCoreValue;
     XLineEndListSharedPtr                                   maLineEndList;
     XDashListSharedPtr                                      maLineStyleList;
-    ::std::unique_ptr< XLineStartItem >                   mpStartItem;
-    ::std::unique_ptr< XLineEndItem >                     mpEndItem;
+    ::std::unique_ptr< XLineStartItem []>                   mpStartItem;
+    ::std::unique_ptr< XLineEndItem []>                     mpEndItem;
 
     //popup windows
     ColorPopup maColorPopup;
@@ -150,8 +150,8 @@ private:
     Image                                                   maIMGNone;
 
     // multi-images
-    ::boost::scoped_array<Image>                            mpIMGWidthIcon;
-    ::boost::scoped_array<Image>                            mpIMGWidthIconH;   
//high contrast
+    ::std::unique_ptr<Image[]>                            mpIMGWidthIcon;
+    ::std::unique_ptr<Image[]>                            mpIMGWidthIconH;     
//high contrast
 
     cssu::Reference< css::frame::XFrame >                   mxFrame;
     SfxBindings*                                            mpBindings;
diff --git a/main/sw/source/filter/ww8/wrtw8sty.cxx 
b/main/sw/source/filter/ww8/wrtw8sty.cxx
index 4d5877478d..19c64ca2f4 100644
--- a/main/sw/source/filter/ww8/wrtw8sty.cxx
+++ b/main/sw/source/filter/ww8/wrtw8sty.cxx
@@ -28,7 +28,7 @@
 #include <algorithm>
 #include <functional>
 
-#include <boost/scoped_array.hpp>
+#include <memory>
 
 #include <com/sun/star/i18n/ScriptType.hdl>
 #include <rtl/tencinfo.h>
@@ -85,7 +85,7 @@ using namespace nsHdFtFlags;
 /// For the output of sections.
 struct WW8_PdAttrDesc
 {
-    ::boost::scoped_array<sal_uInt8> m_pData;
+    ::std::unique_ptr<sal_uInt8[]> m_pData;
     sal_uInt16 m_nLen;
     WW8_FC m_nSepxFcPos;
     WW8_PdAttrDesc() : m_nLen(0), m_nSepxFcPos(0xffffffff) /*default: none*/
diff --git a/main/unoxml/source/dom/elementlist.hxx 
b/main/unoxml/source/dom/elementlist.hxx
index c7cea8369a..6d819c38be 100644
--- a/main/unoxml/source/dom/elementlist.hxx
+++ b/main/unoxml/source/dom/elementlist.hxx
@@ -26,7 +26,7 @@
 
 #include <vector>
 
-#include <boost/scoped_array.hpp>
+#include <memory>
 
 #include <libxml/tree.h>
 
@@ -61,8 +61,8 @@ namespace DOM
     private:
         ::rtl::Reference<CElement> const m_pElement;
         ::osl::Mutex & m_rMutex;
-        ::boost::scoped_array<xmlChar> const m_pName;
-        ::boost::scoped_array<xmlChar> const m_pURI;
+        ::std::unique_ptr<xmlChar[]> const m_pName;
+        ::std::unique_ptr<xmlChar[]> const m_pURI;
         bool m_bRebuild;
         nodevector_t m_nodevector;
 
diff --git a/main/vcl/source/gdi/image.cxx b/main/vcl/source/gdi/image.cxx
index 5992c1130f..1d00224427 100644
--- a/main/vcl/source/gdi/image.cxx
+++ b/main/vcl/source/gdi/image.cxx
@@ -23,7 +23,7 @@
 #include "precompiled_vcl.hxx"
 
 #include <memory>
-#include <boost/scoped_array.hpp>
+#include <memory>
 
 #include <rtl/logfile.hxx>
 
@@ -440,7 +440,7 @@ ImageList::ImageList( const ResId& rResId ) :
 
                sal_uLong                                                       
        nObjMask = pResMgr->ReadLong();
                const String                                            
aPrefix( pResMgr->ReadString() );
-               ::std::unique_ptr< Color >              spMaskColor;
+               ::std::unique_ptr< Color []>            spMaskColor;
 
                if( nObjMask & RSC_IMAGE_MASKCOLOR )
                        spMaskColor.reset( new Color( ResId( 
(RSHEADER_TYPE*)pResMgr->GetClass(), *pResMgr ) ) );
diff --git a/main/xmloff/source/text/txtimp.cxx 
b/main/xmloff/source/text/txtimp.cxx
index 2726142816..57c0ae040e 100644
--- a/main/xmloff/source/text/txtimp.cxx
+++ b/main/xmloff/source/text/txtimp.cxx
@@ -26,7 +26,7 @@
 
 #include <vector>
 
-#include <boost/scoped_array.hpp>
+#include <memory>
 #include <tuple>
 
 #include <tools/solar.h>
@@ -523,22 +523,22 @@ static __FAR_DATA SvXMLTokenMapEntry 
aTextFieldAttrTokenMap[] =
 struct SAL_DLLPRIVATE XMLTextImportHelper::Impl
     : private ::boost::noncopyable
 {
-    ::std::unique_ptr<SvXMLTokenMap> m_pTextElemTokenMap;
-    ::std::unique_ptr<SvXMLTokenMap> m_pTextPElemTokenMap;
-    ::std::unique_ptr<SvXMLTokenMap> m_pTextPAttrTokenMap;
-    ::std::unique_ptr<SvXMLTokenMap> m_pTextFieldAttrTokenMap;
-    ::std::unique_ptr<SvXMLTokenMap> m_pTextNumberedParagraphAttrTokenMap;
-    ::std::unique_ptr<SvXMLTokenMap> m_pTextListBlockAttrTokenMap;
-    ::std::unique_ptr<SvXMLTokenMap> m_pTextListBlockElemTokenMap;
-    ::std::unique_ptr<SvXMLTokenMap> m_pTextFrameAttrTokenMap;
-    ::std::unique_ptr<SvXMLTokenMap> m_pTextContourAttrTokenMap;
-    ::std::unique_ptr<SvXMLTokenMap> m_pTextHyperlinkAttrTokenMap;
-    ::std::unique_ptr<SvXMLTokenMap> m_pTextMasterPageElemTokenMap;
-    ::std::unique_ptr<SvStringsDtor> m_pPrevFrmNames;
-    ::std::unique_ptr<SvStringsDtor> m_pNextFrmNames;
+    ::std::unique_ptr<SvXMLTokenMap[]> m_pTextElemTokenMap;
+    ::std::unique_ptr<SvXMLTokenMap[]> m_pTextPElemTokenMap;
+    ::std::unique_ptr<SvXMLTokenMap[]> m_pTextPAttrTokenMap;
+    ::std::unique_ptr<SvXMLTokenMap[]> m_pTextFieldAttrTokenMap;
+    ::std::unique_ptr<SvXMLTokenMap[]> m_pTextNumberedParagraphAttrTokenMap;
+    ::std::unique_ptr<SvXMLTokenMap[]> m_pTextListBlockAttrTokenMap;
+    ::std::unique_ptr<SvXMLTokenMap[]> m_pTextListBlockElemTokenMap;
+    ::std::unique_ptr<SvXMLTokenMap[]> m_pTextFrameAttrTokenMap;
+    ::std::unique_ptr<SvXMLTokenMap[]> m_pTextContourAttrTokenMap;
+    ::std::unique_ptr<SvXMLTokenMap[]> m_pTextHyperlinkAttrTokenMap;
+    ::std::unique_ptr<SvXMLTokenMap[]> m_pTextMasterPageElemTokenMap;
+    ::std::unique_ptr<SvStringsDtor[]> m_pPrevFrmNames;
+    ::std::unique_ptr<SvStringsDtor[]> m_pNextFrmNames;
 
     // --> OD 2008-04-25 #refactorlists#
-    ::std::unique_ptr<XMLTextListsHelper> m_pTextListsHelper;
+    ::std::unique_ptr<XMLTextListsHelper[]> m_pTextListsHelper;
     // <--
 
     SvXMLImportContextRef m_xAutoStyles;
@@ -552,13 +552,13 @@ struct SAL_DLLPRIVATE XMLTextImportHelper::Impl
     UniReference< SvXMLImportPropertyMapper > m_xSectionImpPrMap;
     UniReference< SvXMLImportPropertyMapper > m_xRubyImpPrMap;
 
-    ::std::unique_ptr<SvI18NMap> m_pRenameMap;
+    ::std::unique_ptr<SvI18NMap[]> m_pRenameMap;
     // --> OD 2006-10-12 #i69629# - change and extend data structure:
     // - data structure contains candidates of paragraph styles, which
     //   will be assigned to the outline style
     // - data structure contains more than one candidate for each list level
     //   of the outline style
-    ::boost::scoped_array< ::std::vector< ::rtl::OUString > >
+    ::std::unique_ptr< ::std::vector< ::rtl::OUString []> >
         m_pOutlineStylesCandidates;
     // <--
 
diff --git a/main/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx 
b/main/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx
index 020e964a24..1ffa9d7810 100644
--- a/main/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx
+++ b/main/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx
@@ -60,7 +60,7 @@
 #include <rtl/logfile.h>
 #include <com/sun/star/task/XInteractionHandler.hpp>
 #include <vector>
-#include "boost/scoped_array.hpp"
+#include <memory>
 
 #include "secerror.hxx"
 
@@ -1120,7 +1120,7 @@ xmlSecKeysMngrPtr 
SecurityEnvironment_NssImpl::createKeysManager() {
         * crypto engine
         */
        int cSlots = m_Slots.size();
-       boost::scoped_array<PK11SlotInfo*> sarSlots(new PK11SlotInfo*[cSlots]);
+       std::unique_ptr<PK11SlotInfo*[]> sarSlots(new PK11SlotInfo*[cSlots]);
        PK11SlotInfo**  slots = sarSlots.get();
        int count = 0;
        for (CIT_SLOTS islots = m_Slots.begin();islots != m_Slots.end(); 
islots++, count++)

Reply via email to