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 ee73e63d0b8161907fc49929ac7de64bcbe4d3fe
Author: Pedro F. Giffuni <[email protected]>
AuthorDate: Thu Nov 5 22:26:02 2026 -0500

    Boost modernization Phase 1: scoped_ptr, array, tuple to C++11 std 
equivalents
    
    - Replace boost::scoped_ptr<T> with std::unique_ptr<T> (~140 files)
      Replace #include <boost/scoped_ptr.hpp> with #include <memory>
    - Replace boost::array<T,N> with std::array<T,N> (2 files)
      Replace #include <boost/array.hpp> with #include <array>
    - Replace boost::tuple/boost::make_tuple/boost::tuples::tie/boost::get
      with std::tuple/std::make_tuple/std::tie/std::get (~10 files)
      Replace #include <boost/tuple/tuple.hpp> with #include <tuple>
    
    Scope limited to boost::scoped_ptr, boost::array, boost::tuple.
    boost::function, boost::bind, boost::noncopyable, Boost.Optional,
    Boost.Variant, Boost.Spirit, scoped_array, and shared-ownership arrays
    not migrated in this phase.
---
 main/basebmp/inc/basebmp/bitmapdevice.hxx          |  4 +-
 main/basegfx/source/range/b2dpolyrange.cxx         | 15 +++++--
 main/canvas/inc/canvas/rendering/bitmap.hxx        |  4 +-
 .../source/directx/dx_canvashelper_texturefill.cxx |  4 +-
 .../canvas/source/vcl/canvashelper_texturefill.cxx |  5 ++-
 .../oox/drawingml/diagram/diagramlayoutatoms.hxx   |  4 +-
 main/oox/inc/oox/ppt/animationspersist.hxx         |  4 +-
 .../ui/framework/factories/BasicPaneFactory.hxx    |  4 +-
 .../ui/framework/factories/BasicViewFactory.hxx    |  4 +-
 .../ui/framework/module/ReadOnlyModeObserver.hxx   |  4 +-
 main/sd/source/ui/inc/SlideSorter.hxx              |  8 ++--
 main/sd/source/ui/inc/ToolBarManager.hxx           |  4 +-
 main/sd/source/ui/inc/ViewShellBase.hxx            |  4 +-
 main/sd/source/ui/inc/ViewTabBar.hxx               |  4 +-
 .../ui/inc/framework/ConfigurationController.hxx   |  4 +-
 .../sd/source/ui/inc/framework/FrameworkHelper.hxx |  4 +-
 .../source/ui/inc/taskpane/ToolPanelViewShell.hxx  |  4 +-
 .../source/ui/slidesorter/cache/SlsBitmapCache.hxx |  4 +-
 .../ui/slidesorter/cache/SlsGenericPageCache.hxx   |  4 +-
 .../inc/controller/SlideSorterController.hxx       | 10 ++---
 .../ui/slidesorter/inc/controller/SlsAnimator.hxx  |  4 +-
 .../ui/slidesorter/inc/view/SlsButtonBar.hxx       |  4 +-
 .../slidesorter/inc/view/SlsPageObjectPainter.hxx  |  6 +--
 .../ui/slidesorter/shell/SlideSorterService.hxx    |  4 +-
 .../ui/slidesorter/view/SlsLayeredDevice.hxx       |  6 +--
 .../ui/slidesorter/view/SlsPageObjectPainter.cxx   |  4 +-
 main/sd/source/ui/view/DocumentRenderer.cxx        |  8 ++--
 main/sdext/source/pdfimport/wrapper/wrapper.cxx    |  4 +-
 main/sdext/source/presenter/PresenterAnimation.hxx |  6 +--
 .../presenter/PresenterPaneBorderPainter.hxx       |  4 +-
 main/sfx2/source/sidebar/Panel.hxx                 |  3 +-
 main/sfx2/source/sidebar/TabBar.hxx                |  3 +-
 .../source/engine/shapes/shapeimporter.cxx         |  4 +-
 main/slideshow/source/inc/screenupdater.hxx        |  4 +-
 main/svx/source/sidebar/line/LinePropertyPanel.hxx | 50 +++++++++++-----------
 main/sw/inc/doc.hxx                                | 10 ++---
 main/vcl/source/gdi/image.cxx                      |  4 +-
 main/xmloff/source/text/txtimp.cxx                 |  6 +--
 38 files changed, 123 insertions(+), 113 deletions(-)

diff --git a/main/basebmp/inc/basebmp/bitmapdevice.hxx 
b/main/basebmp/inc/basebmp/bitmapdevice.hxx
index b26f911314..82128d0c58 100644
--- a/main/basebmp/inc/basebmp/bitmapdevice.hxx
+++ b/main/basebmp/inc/basebmp/bitmapdevice.hxx
@@ -27,7 +27,7 @@
 #include <sal/types.h>
 #include <basebmp/drawmodes.hxx>
 
-#include <boost/scoped_ptr.hpp>
+#include <memory>
 #include <memory>
 #include <boost/shared_array.hpp>
 #include <boost/enable_shared_from_this.hpp>
@@ -636,7 +636,7 @@ private:
 
     BitmapDeviceSharedPtr getGenericRenderer() const;
 
-    boost::scoped_ptr< ImplBitmapDevice > mpImpl;
+    std::unique_ptr< ImplBitmapDevice > mpImpl;
 };
 
 /** Factory method to create a BitmapDevice for given scanline format
diff --git a/main/basegfx/source/range/b2dpolyrange.cxx 
b/main/basegfx/source/range/b2dpolyrange.cxx
index 492bed8035..4fcb8ccf2c 100644
--- a/main/basegfx/source/range/b2dpolyrange.cxx
+++ b/main/basegfx/source/range/b2dpolyrange.cxx
@@ -30,6 +30,7 @@
 #include <basegfx/tuple/b2dtuple.hxx>
 #include <basegfx/polygon/b2dpolypolygon.hxx>
 
+#include <boost/bind.hpp>
 #include <tuple>
 #include <algorithm>
 #include <vector>
@@ -50,7 +51,11 @@ namespace basegfx
             maBounds.reset();
             std::for_each(maRanges.begin(),
                           maRanges.end(),
-                          [&](const auto& range) { maBounds.expand(range); });
+                          boost::bind(
+                              (void (B2DRange::*)(const B2DRange&))(
+                 &B2DRange::expand),
+                              boost::ref(maBounds),
+                              _1));
         }
 
     public:
@@ -170,7 +175,9 @@ namespace basegfx
         {
             std::for_each(maOrient.begin(),
                           maOrient.end(),
-                          [](auto& orient) { flipOrientation(orient); });
+                          boost::bind(
+                              &flipOrientation,
+                              _1));
         }
 
         B2DRange getBounds() const
@@ -203,7 +210,9 @@ namespace basegfx
             const std::vector<B2DRange>::const_iterator aEnd( maRanges.end() );
             return std::find_if( maRanges.begin(),
                                  aEnd,
-                                 [&](const auto& range) { return 
range.overlaps(rRange); } ) != aEnd;
+                                 boost::bind<bool>( boost::mem_fn( 
&B2DRange::overlaps ),
+                                                    _1,
+                                                    boost::cref(rRange) ) ) != 
aEnd;
         }
 
         B2DPolyPolygon solveCrossovers() const
diff --git a/main/canvas/inc/canvas/rendering/bitmap.hxx 
b/main/canvas/inc/canvas/rendering/bitmap.hxx
index 14131c38dd..e211649eee 100644
--- a/main/canvas/inc/canvas/rendering/bitmap.hxx
+++ b/main/canvas/inc/canvas/rendering/bitmap.hxx
@@ -34,7 +34,7 @@
 #include <canvas/rendering/isurfaceproxymanager.hxx>
 
 #include <memory>
-#include <boost/scoped_ptr.hpp>
+#include <memory>
 #include <vector>
 
 namespace basegfx
@@ -307,7 +307,7 @@ namespace canvas
     private:
         friend class ImplBitmap;
 
-        const ::boost::scoped_ptr< ImplBitmap > mpImpl;
+        const ::std::unique_ptr< ImplBitmap > mpImpl;
        };
 
     typedef ::std::shared_ptr< Bitmap > BitmapSharedPtr;
diff --git a/main/canvas/source/directx/dx_canvashelper_texturefill.cxx 
b/main/canvas/source/directx/dx_canvashelper_texturefill.cxx
index 9a49c04a93..33a8afca7a 100644
--- a/main/canvas/source/directx/dx_canvashelper_texturefill.cxx
+++ b/main/canvas/source/directx/dx_canvashelper_texturefill.cxx
@@ -23,6 +23,7 @@
 
 // MARKER(update_precomp.py): autogen include statement, do not remove
 #include "precompiled_canvas.hxx"
+#include <tuple>
 
 #include <canvas/debug.hxx>
 #include <tools/diagnose_ex.h>
@@ -49,7 +50,6 @@
 
 #include <boost/scoped_ptr.hpp>
 #include <boost/bind.hpp>
-#include <boost/tuple/tuple.hpp>
 #include <memory>
 
 
@@ -336,7 +336,7 @@ namespace dxcanvas
                     std::ptrdiff_t nIndex;
                     double fAlpha;
                     const double fT( i/double(nStepCount) );
-                    boost::tuples::tie(nIndex,fAlpha)=aLerper.lerp(fT);
+                    std::tie(nIndex,fAlpha)=aLerper.lerp(fT);
 
                     const Gdiplus::Color aFillColor(
                         static_cast<BYTE>( 
basegfx::tools::lerp(rColors[nIndex].GetRed(),rColors[nIndex+1].GetRed(),fAlpha)
 ),
diff --git a/main/canvas/source/vcl/canvashelper_texturefill.cxx 
b/main/canvas/source/vcl/canvashelper_texturefill.cxx
index c6e58952a0..1c24f9e4b8 100644
--- a/main/canvas/source/vcl/canvashelper_texturefill.cxx
+++ b/main/canvas/source/vcl/canvashelper_texturefill.cxx
@@ -60,6 +60,7 @@
 
 #include <canvas/canvastools.hxx>
 #include <canvas/parametricpolypolygon.hxx>
+#include <boost/bind.hpp>
 
 #include "spritecanvas.hxx"
 #include "canvashelper.hxx"
@@ -771,7 +772,9 @@ namespace vclcanvas
                         std::transform(&rValues.maColors[0],
                                        
&rValues.maColors[0]+rValues.maColors.getLength(),
                                        aColors.begin(),
-                                        [](const auto& val) { return 
vcl::unotools::stdColorSpaceSequenceToColor( val ); }));
+                                       boost::bind(
+                                           
&vcl::unotools::stdColorSpaceSequenceToColor,
+                                           _1));
 
                         // TODO(E1): Return value
                         // TODO(F1): FillRule
diff --git a/main/oox/inc/oox/drawingml/diagram/diagramlayoutatoms.hxx 
b/main/oox/inc/oox/drawingml/diagram/diagramlayoutatoms.hxx
index b7fa84320c..7a6666b196 100644
--- a/main/oox/inc/oox/drawingml/diagram/diagramlayoutatoms.hxx
+++ b/main/oox/inc/oox/drawingml/diagram/diagramlayoutatoms.hxx
@@ -32,7 +32,7 @@
 #include <string>
 
 #include <memory>
-#include <boost/array.hpp>
+#include <array>
 
 #include <com/sun/star/uno/Any.hxx>
 #include <com/sun/star/xml/sax/XFastAttributeList.hpp>
@@ -185,7 +185,7 @@ public:
        };
        // we know that the array is of fixed size
        // the use of Any allow having empty values
-       typedef boost::array< ::com::sun::star::uno::Any, 9 > VarMap;
+       typedef std::array< ::com::sun::star::uno::Any, 9 > VarMap;
 
        virtual ~LayoutNode()
                {}
diff --git a/main/oox/inc/oox/ppt/animationspersist.hxx 
b/main/oox/inc/oox/ppt/animationspersist.hxx
index 44e54eccea..760196a173 100644
--- a/main/oox/inc/oox/ppt/animationspersist.hxx
+++ b/main/oox/inc/oox/ppt/animationspersist.hxx
@@ -27,7 +27,7 @@
 
 #include <list>
 #include <memory>
-#include <boost/array.hpp>
+#include <array>
 
 #include <rtl/ustring.hxx>
 
@@ -52,7 +52,7 @@ namespace oox { namespace ppt {
                _NP_SIZE
        };
 
-       typedef boost::array< ::com::sun::star::uno::Any, _NP_SIZE > 
NodePropertyMap;
+       typedef std::array< ::com::sun::star::uno::Any, _NP_SIZE > 
NodePropertyMap;
 
 
        /** data for CT_TLShapeTargetElement */
diff --git a/main/sd/source/ui/framework/factories/BasicPaneFactory.hxx 
b/main/sd/source/ui/framework/factories/BasicPaneFactory.hxx
index 6604f60ec2..1a16760fe0 100644
--- a/main/sd/source/ui/framework/factories/BasicPaneFactory.hxx
+++ b/main/sd/source/ui/framework/factories/BasicPaneFactory.hxx
@@ -38,7 +38,7 @@
 #include "UpdateLockManager.hxx"
 
 
-#include <boost/scoped_ptr.hpp>
+#include <memory>
 #include <memory>
 
 namespace css = ::com::sun::star;
@@ -118,7 +118,7 @@ private:
     ViewShellBase* mpViewShellBase;
     class PaneDescriptor;
     class PaneContainer;
-    ::boost::scoped_ptr<PaneContainer> mpPaneContainer;
+    ::std::unique_ptr<PaneContainer> mpPaneContainer;
     bool mbFirstUpdateSeen;
     ::std::shared_ptr<UpdateLockManager> mpUpdateLockManager;
 
diff --git a/main/sd/source/ui/framework/factories/BasicViewFactory.hxx 
b/main/sd/source/ui/framework/factories/BasicViewFactory.hxx
index 0dcf02bb59..513ae5f44d 100644
--- a/main/sd/source/ui/framework/factories/BasicViewFactory.hxx
+++ b/main/sd/source/ui/framework/factories/BasicViewFactory.hxx
@@ -37,7 +37,7 @@
 #include <osl/mutex.hxx>
 
 #include <memory>
-#include <boost/scoped_ptr.hpp>
+#include <memory>
 
 namespace css = ::com::sun::star;
 
@@ -107,7 +107,7 @@ private:
         mxConfigurationController;
     class ViewDescriptor;
     class ViewShellContainer;
-    ::boost::scoped_ptr<ViewShellContainer> mpViewShellContainer;
+    ::std::unique_ptr<ViewShellContainer> mpViewShellContainer;
     ViewShellBase* mpBase;
     FrameView* mpFrameView;
 
diff --git a/main/sd/source/ui/framework/module/ReadOnlyModeObserver.hxx 
b/main/sd/source/ui/framework/module/ReadOnlyModeObserver.hxx
index 5b2470f851..de05e0225c 100644
--- a/main/sd/source/ui/framework/module/ReadOnlyModeObserver.hxx
+++ b/main/sd/source/ui/framework/module/ReadOnlyModeObserver.hxx
@@ -38,7 +38,7 @@
 #include <cppuhelper/compbase2.hxx>
 #include <tools/link.hxx>
 #include <boost/function.hpp>
-#include <boost/scoped_ptr.hpp>
+#include <memory>
 #include <memory>
 
 namespace {
@@ -119,7 +119,7 @@ private:
     ::com::sun::star::uno::Reference<com::sun::star::frame::XDispatch>
         mxDispatch;
     class ModifyBroadcaster;
-    ::boost::scoped_ptr<ModifyBroadcaster> mpBroadcaster;
+    ::std::unique_ptr<ModifyBroadcaster> mpBroadcaster;
 
     /** Listen for the .uno:EditMode command.  Returns <TRUE/> when the 
connection
         has been established.
diff --git a/main/sd/source/ui/inc/SlideSorter.hxx 
b/main/sd/source/ui/inc/SlideSorter.hxx
index 99fe44157b..7698d81299 100644
--- a/main/sd/source/ui/inc/SlideSorter.hxx
+++ b/main/sd/source/ui/inc/SlideSorter.hxx
@@ -31,7 +31,7 @@
 #include <sfx2/viewfrm.hxx>
 #include <boost/noncopyable.hpp>
 #include <memory>
-#include <boost/scoped_ptr.hpp>
+#include <memory>
 #include <boost/current_function.hpp>
 
 
@@ -226,9 +226,9 @@ protected:
 private:
     bool mbIsValid;
 
-    ::boost::scoped_ptr<controller::SlideSorterController> 
mpSlideSorterController;
-    ::boost::scoped_ptr<model::SlideSorterModel> mpSlideSorterModel;
-    ::boost::scoped_ptr<view::SlideSorterView> mpSlideSorterView;
+    ::std::unique_ptr<controller::SlideSorterController> 
mpSlideSorterController;
+    ::std::unique_ptr<model::SlideSorterModel> mpSlideSorterModel;
+    ::std::unique_ptr<view::SlideSorterView> mpSlideSorterView;
     ::com::sun::star::uno::WeakReference<com::sun::star::frame::XController> 
mxControllerWeak;
     ViewShell* mpViewShell;
     ViewShellBase* mpViewShellBase;
diff --git a/main/sd/source/ui/inc/ToolBarManager.hxx 
b/main/sd/source/ui/inc/ToolBarManager.hxx
index a6750d8931..b6c17c3aba 100644
--- a/main/sd/source/ui/inc/ToolBarManager.hxx
+++ b/main/sd/source/ui/inc/ToolBarManager.hxx
@@ -30,7 +30,7 @@
 #include <com/sun/star/frame/XFrame.hpp>
 
 #include <sal/types.h>
-#include <boost/scoped_ptr.hpp>
+#include <memory>
 #include <memory>
 #include <boost/enable_shared_from_this.hpp>
 
@@ -263,7 +263,7 @@ public:
 
 private:
     class Implementation;
-    ::boost::scoped_ptr<Implementation> mpImpl;
+    ::std::unique_ptr<Implementation> mpImpl;
 
     /** The ViewShellBase is used to get the XLayoutManager and to determine
         the plug in mode.
diff --git a/main/sd/source/ui/inc/ViewShellBase.hxx 
b/main/sd/source/ui/inc/ViewShellBase.hxx
index f8ac29f5c6..22d0888aa4 100644
--- a/main/sd/source/ui/inc/ViewShellBase.hxx
+++ b/main/sd/source/ui/inc/ViewShellBase.hxx
@@ -33,7 +33,7 @@
 #include <sfx2/viewfac.hxx>
 #include <memory>
 #include <memory>
-#include <boost/scoped_ptr.hpp>
+#include <memory>
 
 #include <set>
 
@@ -245,7 +245,7 @@ protected:
 
 private:
     class Implementation;
-    ::boost::scoped_ptr<Implementation> mpImpl;
+    ::std::unique_ptr<Implementation> mpImpl;
        DrawDocShell* mpDocShell;
        SdDrawDocument* mpDocument;
 
diff --git a/main/sd/source/ui/inc/ViewTabBar.hxx 
b/main/sd/source/ui/inc/ViewTabBar.hxx
index 811bf92b47..b9a410fd46 100644
--- a/main/sd/source/ui/inc/ViewTabBar.hxx
+++ b/main/sd/source/ui/inc/ViewTabBar.hxx
@@ -39,7 +39,7 @@
 #include "MutexOwner.hxx"
 
 #include <vector>
-#include <boost/scoped_ptr.hpp>
+#include <memory>
 #include <memory>
 
 namespace sd { namespace tools {
@@ -166,7 +166,7 @@ private:
         ::com::sun::star::drawing::framework::XConfigurationController> 
mxConfigurationController;
     typedef ::std::vector<com::sun::star::drawing::framework::TabBarButton> 
TabBarButtonList;
     TabBarButtonList maTabBarButtons;
-    ::boost::scoped_ptr<TabPage> mpTabPage;
+    ::std::unique_ptr<TabPage> mpTabPage;
     ::com::sun::star::uno::Reference<
         ::com::sun::star::drawing::framework::XResourceId> mxViewTabBarId;
     ViewShellBase* mpViewShellBase;
diff --git a/main/sd/source/ui/inc/framework/ConfigurationController.hxx 
b/main/sd/source/ui/inc/framework/ConfigurationController.hxx
index cc5955164b..be39aa0e09 100644
--- a/main/sd/source/ui/inc/framework/ConfigurationController.hxx
+++ b/main/sd/source/ui/inc/framework/ConfigurationController.hxx
@@ -40,7 +40,7 @@
 #include <tools/link.hxx>
 #include <rtl/ref.hxx>
 
-#include <boost/scoped_ptr.hpp>
+#include <memory>
 #include <memory>
 #include <boost/noncopyable.hpp>
 
@@ -193,7 +193,7 @@ public:
 
 private:
     class Implementation;
-    ::boost::scoped_ptr<Implementation> mpImplementation;
+    ::std::unique_ptr<Implementation> mpImplementation;
     bool mbIsDisposed;
 
     /** When the called object has already been disposed this method throws
diff --git a/main/sd/source/ui/inc/framework/FrameworkHelper.hxx 
b/main/sd/source/ui/inc/framework/FrameworkHelper.hxx
index 580ce90e8a..a5cbe7bdc0 100644
--- a/main/sd/source/ui/inc/framework/FrameworkHelper.hxx
+++ b/main/sd/source/ui/inc/framework/FrameworkHelper.hxx
@@ -32,7 +32,7 @@
 #include <com/sun/star/drawing/framework/XView.hpp>
 #include <com/sun/star/lang/XEventListener.hpp>
 
-#include <boost/scoped_ptr.hpp>
+#include <memory>
 #include <memory>
 #include <boost/enable_shared_from_this.hpp>
 #include <boost/function.hpp>
@@ -370,7 +370,7 @@ private:
     */
     static InstanceMap maInstanceMap;
     class ViewURLMap;
-    static ::boost::scoped_ptr<ViewURLMap> mpViewURLMap;
+    static ::std::unique_ptr<ViewURLMap> mpViewURLMap;
 
     ViewShellBase& mrBase;
     cssu::Reference<cssdf::XConfigurationController>
diff --git a/main/sd/source/ui/inc/taskpane/ToolPanelViewShell.hxx 
b/main/sd/source/ui/inc/taskpane/ToolPanelViewShell.hxx
index 14468e4d05..b12f8f0a2b 100644
--- a/main/sd/source/ui/inc/taskpane/ToolPanelViewShell.hxx
+++ b/main/sd/source/ui/inc/taskpane/ToolPanelViewShell.hxx
@@ -34,7 +34,7 @@
 #include <sfx2/dockwin.hxx>
 
 #include <memory>
-#include <boost/scoped_ptr.hpp>
+#include <memory>
 
 class PopupMenu;
 
@@ -131,7 +131,7 @@ public:
                        );
 
 private:
-       ::boost::scoped_ptr< ToolPanelViewShell_Impl > mpImpl;
+       ::std::unique_ptr< ToolPanelViewShell_Impl > mpImpl;
 
        ::std::shared_ptr<TaskPaneShellManager> mpSubShellManager;
 
diff --git a/main/sd/source/ui/slidesorter/cache/SlsBitmapCache.hxx 
b/main/sd/source/ui/slidesorter/cache/SlsBitmapCache.hxx
index 8be6e7c037..89ea42a273 100644
--- a/main/sd/source/ui/slidesorter/cache/SlsBitmapCache.hxx
+++ b/main/sd/source/ui/slidesorter/cache/SlsBitmapCache.hxx
@@ -29,7 +29,7 @@ class SdrPage;
 #include <vcl/bitmapex.hxx>
 #include <osl/mutex.hxx>
 #include <memory>
-#include <boost/scoped_ptr.hpp>
+#include <memory>
 #include <unordered_map>
 
 namespace sd { namespace slidesorter { namespace cache {
@@ -181,7 +181,7 @@ public:
 private:
     mutable ::osl::Mutex maMutex;
 
-    ::boost::scoped_ptr<CacheBitmapContainer> mpBitmapContainer;
+    ::std::unique_ptr<CacheBitmapContainer> mpBitmapContainer;
 
     /** Total size of bytes that are occupied by bitmaps in the cache for
         whom the slides are currently not inside the visible area.
diff --git a/main/sd/source/ui/slidesorter/cache/SlsGenericPageCache.hxx 
b/main/sd/source/ui/slidesorter/cache/SlsGenericPageCache.hxx
index d23e32a620..08ef4c8d8e 100644
--- a/main/sd/source/ui/slidesorter/cache/SlsGenericPageCache.hxx
+++ b/main/sd/source/ui/slidesorter/cache/SlsGenericPageCache.hxx
@@ -26,7 +26,7 @@
 
 #include "SlideSorter.hxx"
 #include "SlsRequestQueue.hxx"
-#include <boost/scoped_ptr.hpp>
+#include <memory>
 #include <memory>
 
 namespace sd { namespace slidesorter { namespace cache {
@@ -143,7 +143,7 @@ private:
 
     RequestQueue maRequestQueue;
 
-    ::boost::scoped_ptr<QueueProcessor> mpQueueProcessor;
+    ::std::unique_ptr<QueueProcessor> mpQueueProcessor;
 
     SharedCacheContext mpCacheContext;
 
diff --git 
a/main/sd/source/ui/slidesorter/inc/controller/SlideSorterController.hxx 
b/main/sd/source/ui/slidesorter/inc/controller/SlideSorterController.hxx
index 0b63e608be..efd6270002 100644
--- a/main/sd/source/ui/slidesorter/inc/controller/SlideSorterController.hxx
+++ b/main/sd/source/ui/slidesorter/inc/controller/SlideSorterController.hxx
@@ -243,16 +243,16 @@ private:
     SlideSorter& mrSlideSorter;
     model::SlideSorterModel& mrModel;
     view::SlideSorterView& mrView;
-    ::boost::scoped_ptr<PageSelector> mpPageSelector;
-    ::boost::scoped_ptr<FocusManager> mpFocusManager;
+    ::std::unique_ptr<PageSelector> mpPageSelector;
+    ::std::unique_ptr<FocusManager> mpFocusManager;
     ::std::shared_ptr<SlotManager> mpSlotManager;
-    ::boost::scoped_ptr<controller::Clipboard> mpClipboard;
-    ::boost::scoped_ptr<ScrollBarManager> mpScrollBarManager;
+    ::std::unique_ptr<controller::Clipboard> mpClipboard;
+    ::std::unique_ptr<ScrollBarManager> mpScrollBarManager;
     mutable ::std::shared_ptr<CurrentSlideManager> mpCurrentSlideManager;
     ::std::shared_ptr<SelectionManager> mpSelectionManager;
     ::std::shared_ptr<InsertionIndicatorHandler> mpInsertionIndicatorHandler;
     ::std::shared_ptr<Animator> mpAnimator;
-    ::boost::scoped_ptr<VisibleAreaManager> mpVisibleAreaManager;
+    ::std::unique_ptr<VisibleAreaManager> mpVisibleAreaManager;
 
     // The listener listens to UNO events and thus is a UNO object.
     // For proper life time management and at the same time free access to
diff --git a/main/sd/source/ui/slidesorter/inc/controller/SlsAnimator.hxx 
b/main/sd/source/ui/slidesorter/inc/controller/SlsAnimator.hxx
index 3942d0ace3..437e8c1378 100644
--- a/main/sd/source/ui/slidesorter/inc/controller/SlsAnimator.hxx
+++ b/main/sd/source/ui/slidesorter/inc/controller/SlsAnimator.hxx
@@ -32,7 +32,7 @@
 #include <vector>
 #include <boost/function.hpp>
 #include <boost/noncopyable.hpp>
-#include <boost/scoped_ptr.hpp>
+#include <memory>
 #include <memory>
 
 
@@ -109,7 +109,7 @@ private:
     AnimationList maAnimations;
     ::canvas::tools::ElapsedTime maElapsedTime;
 
-    ::boost::scoped_ptr<view::SlideSorterView::DrawLock> mpDrawLock;
+    ::std::unique_ptr<view::SlideSorterView::DrawLock> mpDrawLock;
 
     AnimationId mnNextAnimationId;
 
diff --git a/main/sd/source/ui/slidesorter/inc/view/SlsButtonBar.hxx 
b/main/sd/source/ui/slidesorter/inc/view/SlsButtonBar.hxx
index 3f8ac0eb08..437ff05e03 100644
--- a/main/sd/source/ui/slidesorter/inc/view/SlsButtonBar.hxx
+++ b/main/sd/source/ui/slidesorter/inc/view/SlsButtonBar.hxx
@@ -29,7 +29,7 @@
 #include <rtl/ustring.hxx>
 #include <vcl/bitmapex.hxx>
 #include <vcl/bmpacc.hxx>
-#include <boost/scoped_ptr.hpp>
+#include <memory>
 #include <memory>
 
 namespace sd { namespace slidesorter {
@@ -166,7 +166,7 @@ private:
     BitmapEx maNormalBackground;
     BitmapEx maButtonDownBackground;
     bool mbIsMouseOverBar;
-    ::boost::scoped_ptr<BackgroundTheme> mpBackgroundTheme;
+    ::std::unique_ptr<BackgroundTheme> mpBackgroundTheme;
     int mnLockCount;
 
     /** Remember the specified page.  If it differs from mpDescriptor then
diff --git a/main/sd/source/ui/slidesorter/inc/view/SlsPageObjectPainter.hxx 
b/main/sd/source/ui/slidesorter/inc/view/SlsPageObjectPainter.hxx
index 535b6cfff2..10a301d355 100644
--- a/main/sd/source/ui/slidesorter/inc/view/SlsPageObjectPainter.hxx
+++ b/main/sd/source/ui/slidesorter/inc/view/SlsPageObjectPainter.hxx
@@ -28,7 +28,7 @@
 #include "model/SlsPageDescriptor.hxx"
 #include "view/SlsLayouter.hxx"
 #include "view/SlsTheme.hxx"
-#include <boost/scoped_ptr.hpp>
+#include <memory>
 #include <memory>
 
 namespace sd { namespace slidesorter { namespace cache {
@@ -83,8 +83,8 @@ private:
     ::std::shared_ptr<controller::Properties> mpProperties;
     ::std::shared_ptr<view::Theme> mpTheme;
     ::std::shared_ptr<Font> mpPageNumberFont;
-    ::boost::scoped_ptr<FramePainter> mpShadowPainter;
-    ::boost::scoped_ptr<FramePainter> mpFocusBorderPainter;
+    ::std::unique_ptr<FramePainter> mpShadowPainter;
+    ::std::unique_ptr<FramePainter> mpFocusBorderPainter;
     Bitmap maNormalBackground;
     Bitmap maSelectionBackground;
     Bitmap maFocusedSelectionBackground;
diff --git a/main/sd/source/ui/slidesorter/shell/SlideSorterService.hxx 
b/main/sd/source/ui/slidesorter/shell/SlideSorterService.hxx
index 6449fc9873..ba54c77aca 100644
--- a/main/sd/source/ui/slidesorter/shell/SlideSorterService.hxx
+++ b/main/sd/source/ui/slidesorter/shell/SlideSorterService.hxx
@@ -37,7 +37,7 @@
 #include <cppuhelper/propshlp.hxx>
 #include <boost/noncopyable.hpp>
 #include <memory>
-#include <boost/scoped_ptr.hpp>
+#include <memory>
 
 namespace css = ::com::sun::star;
 
@@ -161,7 +161,7 @@ private:
     ::std::shared_ptr<SlideSorter> mpSlideSorter;
     css::uno::Reference<css::drawing::framework::XResourceId> mxViewId;
     css::uno::Reference<css::awt::XWindow> mxParentWindow;
-    ::boost::scoped_ptr<cppu::IPropertyArrayHelper> mpPropertyArrayHelper;
+    ::std::unique_ptr<cppu::IPropertyArrayHelper> mpPropertyArrayHelper;
 
     void Resize (void);
 
diff --git a/main/sd/source/ui/slidesorter/view/SlsLayeredDevice.hxx 
b/main/sd/source/ui/slidesorter/view/SlsLayeredDevice.hxx
index 8226074d2b..26fe140ba0 100644
--- a/main/sd/source/ui/slidesorter/view/SlsLayeredDevice.hxx
+++ b/main/sd/source/ui/slidesorter/view/SlsLayeredDevice.hxx
@@ -32,7 +32,7 @@
 #include <vcl/virdev.hxx>
 
 #include <boost/noncopyable.hpp>
-#include <boost/scoped_ptr.hpp>
+#include <memory>
 #include <memory>
 #include <boost/enable_shared_from_this.hpp>
 #include <vector>
@@ -81,8 +81,8 @@ public:
 private:
        SharedSdWindow mpTargetWindow;
        class LayerContainer;
-       ::boost::scoped_ptr<LayerContainer> mpLayers;
-       ::boost::scoped_ptr<VirtualDevice> mpBackBuffer;
+       ::std::unique_ptr<LayerContainer> mpLayers;
+       ::std::unique_ptr<VirtualDevice> mpBackBuffer;
        MapMode maSavedMapMode;
 
        void RepaintRectangle (const Rectangle& rRepaintRectangle);
diff --git a/main/sd/source/ui/slidesorter/view/SlsPageObjectPainter.cxx 
b/main/sd/source/ui/slidesorter/view/SlsPageObjectPainter.cxx
index bd9c44f180..e8c06724f8 100644
--- a/main/sd/source/ui/slidesorter/view/SlsPageObjectPainter.cxx
+++ b/main/sd/source/ui/slidesorter/view/SlsPageObjectPainter.cxx
@@ -40,7 +40,7 @@
 #include <vcl/svapp.hxx>
 #include <vcl/vclenum.hxx>
 #include <vcl/virdev.hxx>
-#include <boost/scoped_ptr.hpp>
+#include <memory>
 #include <memory>
 
 using namespace ::drawinglayer::primitive2d;
@@ -280,7 +280,7 @@ Bitmap PageObjectPainter::CreateMarkedPreview (
        const BitmapEx& rOverlay,
        const OutputDevice* pReferenceDevice) const
 {
-       ::boost::scoped_ptr<VirtualDevice> pDevice;
+       ::std::unique_ptr<VirtualDevice> pDevice;
        if (pReferenceDevice != NULL)
                pDevice.reset(new VirtualDevice(*pReferenceDevice));
        else
diff --git a/main/sd/source/ui/view/DocumentRenderer.cxx 
b/main/sd/source/ui/view/DocumentRenderer.cxx
index 74c7164023..889737c1b3 100644
--- a/main/sd/source/ui/view/DocumentRenderer.cxx
+++ b/main/sd/source/ui/view/DocumentRenderer.cxx
@@ -297,7 +297,7 @@ namespace {
         const bool mbAreAllPagesSelected;
         const bool mbIsShapeSelection;
         const sal_Int32 mnCurrentPageIndex;
-        ::boost::scoped_ptr<MultiSelection> mpSelectedPages;
+        ::std::unique_ptr<MultiSelection> mpSelectedPages;
     };
 
     /** A collection of values that helps to reduce the number of arguments
@@ -1205,7 +1205,7 @@ namespace {
         }
 
     private:
-        ::boost::scoped_ptr<OutlinerParaObject> mpParaObject;
+        ::std::unique_ptr<OutlinerParaObject> mpParaObject;
     };
 }
 
@@ -1424,9 +1424,9 @@ private:
     bool mbIsDisposed;
     Printer* mpPrinter;
     Size maPrinterPageSizePixel;
-    ::boost::scoped_ptr<PrintOptions> mpOptions;
+    ::std::unique_ptr<PrintOptions> mpOptions;
     ::std::vector< ::std::shared_ptr< ::sd::PrinterPage> > maPrinterPages;
-    ::boost::scoped_ptr<DrawView> mpPrintView;
+    ::std::unique_ptr<DrawView> mpPrintView;
     bool mbHasOrientationWarningBeenShown;
     ::std::vector<sal_Int32> maSlidesPerPage;
     awt::Size maPrintSize;
diff --git a/main/sdext/source/pdfimport/wrapper/wrapper.cxx 
b/main/sdext/source/pdfimport/wrapper/wrapper.cxx
index b20c10c801..9f2909a96f 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 <memory>
+#include <boost/scoped_array.hpp>
 
 #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/sdext/source/presenter/PresenterAnimation.hxx 
b/main/sdext/source/presenter/PresenterAnimation.hxx
index 09075eb1d5..88b96448b9 100644
--- a/main/sdext/source/presenter/PresenterAnimation.hxx
+++ b/main/sdext/source/presenter/PresenterAnimation.hxx
@@ -27,7 +27,7 @@
 #include <sal/types.h>
 #include <boost/function.hpp>
 #include <boost/noncopyable.hpp>
-#include <boost/scoped_ptr.hpp>
+#include <memory>
 #include <memory>
 #include <vector>
 
@@ -110,8 +110,8 @@ private:
     const sal_uInt64 mnStartTime;
     const sal_uInt64 mnTotalDuration;
     const sal_uInt64 mnStepDuration;
-    ::boost::scoped_ptr<std::vector<Callback> > mpStartCallbacks;
-    ::boost::scoped_ptr<std::vector<Callback> > mpEndCallbacks;
+    ::std::unique_ptr<std::vector<Callback> > mpStartCallbacks;
+    ::std::unique_ptr<std::vector<Callback> > mpEndCallbacks;
 };
 
 sal_uInt64 GetCurrentTime (void);
diff --git a/main/sdext/source/presenter/PresenterPaneBorderPainter.hxx 
b/main/sdext/source/presenter/PresenterPaneBorderPainter.hxx
index 37f6ad7298..a4447e5add 100644
--- a/main/sdext/source/presenter/PresenterPaneBorderPainter.hxx
+++ b/main/sdext/source/presenter/PresenterPaneBorderPainter.hxx
@@ -34,7 +34,7 @@
 #include <cppuhelper/basemutex.hxx>
 #include <cppuhelper/compbase1.hxx>
 #include <boost/noncopyable.hpp>
-#include <boost/scoped_ptr.hpp>
+#include <memory>
 #include <memory>
 
 namespace css = ::com::sun::star;
@@ -133,7 +133,7 @@ public:
 private:
     css::uno::Reference<css::uno::XComponentContext> mxContext;
     ::std::shared_ptr<PresenterTheme> mpTheme;
-    ::boost::scoped_ptr<Renderer> mpRenderer;
+    ::std::unique_ptr<Renderer> mpRenderer;
 
     /** When the theme for the border has not yet been loaded then try again
         when this method is called.
diff --git a/main/sfx2/source/sidebar/Panel.hxx 
b/main/sfx2/source/sidebar/Panel.hxx
index ebc234b61b..c991c17178 100644
--- a/main/sfx2/source/sidebar/Panel.hxx
+++ b/main/sfx2/source/sidebar/Panel.hxx
@@ -29,7 +29,6 @@
 #include <com/sun/star/ui/XSidebarPanel.hpp>
 
 #include <boost/function.hpp>
-#include <boost/scoped_ptr.hpp>
 #include <memory>
 #include <vector>
 
@@ -76,7 +75,7 @@ public:
 
 private:
     const ::rtl::OUString msPanelId;
-    ::boost::scoped_ptr<PanelTitleBar> mpTitleBar;
+    ::std::unique_ptr<PanelTitleBar> mpTitleBar;
     const bool mbIsTitleBarOptional;
     cssu::Reference<css::ui::XUIElement> mxElement;
     cssu::Reference<css::ui::XSidebarPanel> mxPanelComponent;
diff --git a/main/sfx2/source/sidebar/TabBar.hxx 
b/main/sfx2/source/sidebar/TabBar.hxx
index 2ea5425695..7f6b019fb9 100644
--- a/main/sfx2/source/sidebar/TabBar.hxx
+++ b/main/sfx2/source/sidebar/TabBar.hxx
@@ -31,7 +31,6 @@
 #include <com/sun/star/frame/XFrame.hpp>
 #include <boost/function.hpp>
 #include <boost/tuple/tuple.hpp>
-#include <boost/scoped_ptr.hpp>
 #include <memory>
 
 class Button;
@@ -100,7 +99,7 @@ public:
 
 private:
     cssu::Reference<css::frame::XFrame> mxFrame;
-    ::boost::scoped_ptr<CheckBox> mpMenuButton;
+    ::std::unique_ptr<CheckBox> mpMenuButton;
     class Item
     {
     public:
diff --git a/main/slideshow/source/engine/shapes/shapeimporter.cxx 
b/main/slideshow/source/engine/shapes/shapeimporter.cxx
index 4a21d6c8c7..d125fe6dc4 100644
--- a/main/slideshow/source/engine/shapes/shapeimporter.cxx
+++ b/main/slideshow/source/engine/shapes/shapeimporter.cxx
@@ -61,7 +61,7 @@
 #include "slideshowcontext.hxx"
 
 #include <memory>
-#include <boost/scoped_ptr.hpp>
+#include <memory>
 
 using namespace com::sun::star;
 
@@ -125,7 +125,7 @@ bool importShapeGraphic(
         // no special string found, graphic must be
         // external. Load via GraphicIm porter
         INetURLObject aTmp( aURL );
-        boost::scoped_ptr<SvStream> pGraphicStream(
+        std::unique_ptr<SvStream> pGraphicStream(
             utl::UcbStreamHelper::CreateStream(
                 aTmp.GetMainURL( INetURLObject::NO_DECODE ),
                 STREAM_READ ) );
diff --git a/main/slideshow/source/inc/screenupdater.hxx 
b/main/slideshow/source/inc/screenupdater.hxx
index be79616aca..c80fc6f28c 100644
--- a/main/slideshow/source/inc/screenupdater.hxx
+++ b/main/slideshow/source/inc/screenupdater.hxx
@@ -27,7 +27,7 @@
 #include "viewupdate.hxx"
 #include "unoviewcontainer.hxx"
 #include <boost/noncopyable.hpp>
-#include <boost/scoped_ptr.hpp>
+#include <memory>
 #include <memory>
 
 /* Definition of ScreenUpdater class */
@@ -127,7 +127,7 @@ namespace slideshow
 
         private:
             struct ImplScreenUpdater;
-            boost::scoped_ptr<ImplScreenUpdater> mpImpl;
+            std::unique_ptr<ImplScreenUpdater> mpImpl;
 
         };
     }
diff --git a/main/svx/source/sidebar/line/LinePropertyPanel.hxx 
b/main/svx/source/sidebar/line/LinePropertyPanel.hxx
index d3aa8b94e9..7191be9712 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 <memory>
+#include <boost/scoped_array.hpp>
 #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
-    ::std::unique_ptr<Image[]>                            mpIMGWidthIcon;
-    ::std::unique_ptr<Image[]>                            mpIMGWidthIconH;     
//high contrast
+    ::boost::scoped_array<Image>                            mpIMGWidthIcon;
+    ::boost::scoped_array<Image>                            mpIMGWidthIconH;   
//high contrast
 
     cssu::Reference< css::frame::XFrame >                   mxFrame;
     SfxBindings*                                            mpBindings;
diff --git a/main/sw/inc/doc.hxx b/main/sw/inc/doc.hxx
index 6c4a8b15a0..a622753643 100644
--- a/main/sw/inc/doc.hxx
+++ b/main/sw/inc/doc.hxx
@@ -87,7 +87,7 @@ class SwList;
 #include <map>
 #include <memory>
 
-#include <boost/scoped_ptr.hpp>
+#include <memory>
 #include <memory>
 #include <flypos.hxx>
 
@@ -283,7 +283,7 @@ class SW_DLLPUBLIC SwDoc :
     //---------------- private Member --------------------------------
 
        // -------------------------------------------------------------------
-    ::boost::scoped_ptr<SwNodes> m_pNodes;  /// document content (Nodes Array)
+    ::std::unique_ptr<SwNodes> m_pNodes;  /// document content (Nodes Array)
        SwAttrPool*     mpAttrPool;                             // der Attribut 
Pool
        SwPageDescs     aPageDescs;                             // 
PageDescriptoren
        Link            aOle2Link;                              // OLE 
2.0-Benachrichtigung
@@ -300,9 +300,9 @@ class SW_DLLPUBLIC SwDoc :
         xXForms;                        // container with XForms models
     mutable com::sun::star::uno::Reference< 
com::sun::star::linguistic2::XProofreadingIterator > m_xGCIterator;
 
-    const ::boost::scoped_ptr< ::sw::mark::MarkManager> pMarkManager;
-    const ::boost::scoped_ptr< ::sw::MetaFieldManager > m_pMetaFieldManager;
-    const ::boost::scoped_ptr< ::sw::UndoManager > m_pUndoManager;
+    const ::std::unique_ptr< ::sw::mark::MarkManager> pMarkManager;
+    const ::std::unique_ptr< ::sw::MetaFieldManager > m_pMetaFieldManager;
+    const ::std::unique_ptr< ::sw::UndoManager > m_pUndoManager;
 
        // -------------------------------------------------------------------
        // die Pointer
diff --git a/main/vcl/source/gdi/image.cxx b/main/vcl/source/gdi/image.cxx
index 1d00224427..5992c1130f 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 <memory>
+#include <boost/scoped_array.hpp>
 
 #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 c7b137190c..2726142816 100644
--- a/main/xmloff/source/text/txtimp.cxx
+++ b/main/xmloff/source/text/txtimp.cxx
@@ -27,7 +27,7 @@
 #include <vector>
 
 #include <boost/scoped_array.hpp>
-#include <boost/tuple/tuple.hpp>
+#include <tuple>
 
 #include <tools/solar.h>
 #include <tools/debug.hxx>
@@ -563,7 +563,7 @@ struct SAL_DLLPRIVATE XMLTextImportHelper::Impl
     // <--
 
     // start range, xml:id, RDFa stuff
-    typedef ::boost::tuple<
+    typedef ::std::tuple<
         uno::Reference<text::XTextRange>, ::rtl::OUString,
         ::std::shared_ptr< ::xmloff::ParsedRDFaAttributes > >
             BookmarkMapEntry_t;
@@ -2725,7 +2725,7 @@ void XMLTextImportHelper::InsertBookmarkStartRange(
     ::std::shared_ptr< ::xmloff::ParsedRDFaAttributes > & i_rpRDFaAttributes)
 {
     m_pImpl->m_BookmarkStartRanges[sName] =
-        ::boost::make_tuple(rRange, i_rXmlId, i_rpRDFaAttributes);
+        ::std::make_tuple(rRange, i_rXmlId, i_rpRDFaAttributes);
     m_pImpl->m_BookmarkVector.push_back(sName);
 }
 

Reply via email to