[Libreoffice-commits] core.git: chart2/inc chart2/source external/boost package/inc package/Library_xstor.mk package/source sc/inc sc/source starmath/inc starmath/source tools/inc tools/source

Jochen Nitschke j.nitschke+logerrit at ok.de
Tue Jan 17 20:24:40 UTC 2017


 chart2/inc/pch/precompiled_chartcontroller.hxx                           |    1 
 chart2/inc/pch/precompiled_chartcore.hxx                                 |    1 
 chart2/source/controller/itemsetwrapper/RegressionCurveItemConverter.cxx |    2 
 chart2/source/view/main/GL3DRenderer.cxx                                 |    1 
 external/boost/include/boost/checked_delete.hpp                          |   23 ----------
 package/Library_xstor.mk                                                 |    2 
 package/inc/pch/precompiled_xstor.hxx                                    |    1 
 package/source/xstor/xstorage.cxx                                        |    6 --
 sc/inc/pch/precompiled_sc.hxx                                            |    1 
 sc/inc/pch/precompiled_scfilt.hxx                                        |    1 
 sc/source/core/data/column.cxx                                           |    3 -
 sc/source/core/data/columnspanset.cxx                                    |    4 -
 sc/source/core/data/document.cxx                                         |    3 -
 sc/source/core/data/dptabres.cxx                                         |    5 --
 sc/source/core/data/table3.cxx                                           |    3 -
 sc/source/core/tool/chartlis.cxx                                         |    4 -
 sc/source/core/tool/rangelst.cxx                                         |    6 +-
 sc/source/filter/xcl97/xcl97rec.cxx                                      |    3 -
 sc/source/ui/unoobj/chart2uno.cxx                                        |    3 -
 sc/source/ui/view/viewdata.cxx                                           |    3 -
 starmath/inc/pch/precompiled_sm.hxx                                      |    1 
 starmath/source/node.cxx                                                 |    3 -
 tools/inc/pch/precompiled_tl.hxx                                         |    1 
 tools/source/fsys/urlobj.cxx                                             |    3 -
 24 files changed, 18 insertions(+), 66 deletions(-)

New commits:
commit e87071ac57a7711078715d9165c264ec3db180ab
Author: Jochen Nitschke <j.nitschke+logerrit at ok.de>
Date:   Mon Jan 16 19:47:20 2017 +0100

    replace boost::checked_deleter with std::default_delete
    
    and remove all traces of boost/checked_delete.hpp
    
    Change-Id: I4486d0e07a7197d75f8739c8c6d79670163eaab2
    Reviewed-on: https://gerrit.libreoffice.org/33182
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Jochen Nitschke <j.nitschke+logerrit at ok.de>

diff --git a/chart2/inc/pch/precompiled_chartcontroller.hxx b/chart2/inc/pch/precompiled_chartcontroller.hxx
index 458f9b9..afdaf38 100644
--- a/chart2/inc/pch/precompiled_chartcontroller.hxx
+++ b/chart2/inc/pch/precompiled_chartcontroller.hxx
@@ -54,7 +54,6 @@
 #include <unordered_map>
 #include <utility>
 #include <vector>
-#include <boost/checked_delete.hpp>
 #include <boost/intrusive_ptr.hpp>
 #include <boost/optional.hpp>
 #include <boost/shared_array.hpp>
diff --git a/chart2/inc/pch/precompiled_chartcore.hxx b/chart2/inc/pch/precompiled_chartcore.hxx
index 908d7ac..3f066ba 100644
--- a/chart2/inc/pch/precompiled_chartcore.hxx
+++ b/chart2/inc/pch/precompiled_chartcore.hxx
@@ -36,7 +36,6 @@
 #include <unordered_map>
 #include <utility>
 #include <vector>
-#include <boost/checked_delete.hpp>
 #include <boost/intrusive_ptr.hpp>
 #include <osl/conditn.hxx>
 #include <osl/diagnose.h>
diff --git a/chart2/source/controller/itemsetwrapper/RegressionCurveItemConverter.cxx b/chart2/source/controller/itemsetwrapper/RegressionCurveItemConverter.cxx
index e4ac942..773d24e 100644
--- a/chart2/source/controller/itemsetwrapper/RegressionCurveItemConverter.cxx
+++ b/chart2/source/controller/itemsetwrapper/RegressionCurveItemConverter.cxx
@@ -34,8 +34,6 @@
 #include <functional>
 #include <algorithm>
 
-#include <boost/checked_delete.hpp>
-
 using namespace ::com::sun::star;
 
 namespace
diff --git a/chart2/source/view/main/GL3DRenderer.cxx b/chart2/source/view/main/GL3DRenderer.cxx
index e1e4c01..c00bd18 100644
--- a/chart2/source/view/main/GL3DRenderer.cxx
+++ b/chart2/source/view/main/GL3DRenderer.cxx
@@ -19,7 +19,6 @@
 
 #include <StaticGeometry.h>
 #include "glm/gtc/matrix_inverse.hpp"
-#include <boost/checked_delete.hpp>
 #include <memory>
 
 #define DEBUG_FBO 0
diff --git a/external/boost/include/boost/checked_delete.hpp b/external/boost/include/boost/checked_delete.hpp
deleted file mode 100644
index 1fb5927..0000000
--- a/external/boost/include/boost/checked_delete.hpp
+++ /dev/null
@@ -1,23 +0,0 @@
-/* generated by bin/gen-boost-headers, do not edit! */
-#pragma once
-#pragma GCC diagnostic push
-#pragma GCC diagnostic ignored "-Wunknown-pragmas"  /* first! for clang */
-#pragma GCC diagnostic ignored "-Wpragmas"  /* second! for GCC */
-#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
-#pragma GCC diagnostic ignored "-Wextra"
-#pragma GCC diagnostic ignored "-Wignored-qualifiers"
-#pragma GCC diagnostic ignored "-Wimplicit-fallthrough"
-#pragma GCC diagnostic ignored "-Winvalid-constexpr"
-#pragma GCC diagnostic ignored "-Wplacement-new"
-#pragma GCC diagnostic ignored "-Wreturn-type"
-#pragma GCC diagnostic ignored "-Wshadow"
-#pragma GCC diagnostic ignored "-Wstrict-aliasing"
-#pragma GCC diagnostic ignored "-Wtautological-constant-out-of-range-compare"
-#pragma GCC diagnostic ignored "-Wtype-limits"
-#pragma GCC diagnostic ignored "-Wundef"
-#pragma GCC diagnostic ignored "-Wunused-local-typedefs"
-#pragma GCC diagnostic ignored "-Wunused-macros"
-#pragma GCC diagnostic ignored "-Wunused-parameter"
-#pragma GCC diagnostic ignored "-Wunused-variable"
-#include_next <boost/checked_delete.hpp>
-#pragma GCC diagnostic pop
diff --git a/package/Library_xstor.mk b/package/Library_xstor.mk
index 612ae0a..2951432 100644
--- a/package/Library_xstor.mk
+++ b/package/Library_xstor.mk
@@ -16,8 +16,6 @@ $(eval $(call gb_Library_set_include,xstor,\
 	-I$(SRCDIR)/package/inc \
 ))
 
-$(eval $(call gb_Library_use_external,xstor,boost_headers))
-
 $(eval $(call gb_Library_set_precompiled_header,xstor,$(SRCDIR)/package/inc/pch/precompiled_xstor))
 
 $(eval $(call gb_Library_use_sdk_api,xstor))
diff --git a/package/inc/pch/precompiled_xstor.hxx b/package/inc/pch/precompiled_xstor.hxx
index ec4bc63..941d290 100644
--- a/package/inc/pch/precompiled_xstor.hxx
+++ b/package/inc/pch/precompiled_xstor.hxx
@@ -33,7 +33,6 @@
 #include <stdlib.h>
 #include <string.h>
 #include <string>
-#include <boost/checked_delete.hpp>
 #include <osl/diagnose.h>
 #include <osl/interlck.h>
 #include <osl/time.h>
diff --git a/package/source/xstor/xstorage.cxx b/package/source/xstor/xstorage.cxx
index 68f47a8..21ac47d 100644
--- a/package/source/xstor/xstorage.cxx
+++ b/package/source/xstor/xstorage.cxx
@@ -57,8 +57,6 @@
 #include "switchpersistencestream.hxx"
 #include "ohierarchyholder.hxx"
 
-#include <boost/checked_delete.hpp>
-
 using namespace ::com::sun::star;
 
 #if OSL_DEBUG_LEVEL > 0
@@ -337,10 +335,10 @@ OStorage_Impl::~OStorage_Impl()
         m_pParent = nullptr;
     }
 
-    std::for_each(m_aChildrenList.begin(), m_aChildrenList.end(), boost::checked_deleter<SotElement_Impl>());
+    std::for_each(m_aChildrenList.begin(), m_aChildrenList.end(), std::default_delete<SotElement_Impl>());
     m_aChildrenList.clear();
 
-    std::for_each(m_aDeletedList.begin(), m_aDeletedList.end(), boost::checked_deleter<SotElement_Impl>());
+    std::for_each(m_aDeletedList.begin(), m_aDeletedList.end(), std::default_delete<SotElement_Impl>());
     m_aDeletedList.clear();
 
     if ( m_nStorageType == embed::StorageFormats::OFOPXML && m_pRelStorElement )
diff --git a/sc/inc/pch/precompiled_sc.hxx b/sc/inc/pch/precompiled_sc.hxx
index 986f9e3..643a525 100644
--- a/sc/inc/pch/precompiled_sc.hxx
+++ b/sc/inc/pch/precompiled_sc.hxx
@@ -56,7 +56,6 @@
 #include <unordered_set>
 #include <utility>
 #include <vector>
-#include <boost/checked_delete.hpp>
 #include <boost/intrusive_ptr.hpp>
 #include <boost/math/special_functions/log1p.hpp>
 #include <boost/optional/optional.hpp>
diff --git a/sc/inc/pch/precompiled_scfilt.hxx b/sc/inc/pch/precompiled_scfilt.hxx
index 58908fb..9048a2c 100644
--- a/sc/inc/pch/precompiled_scfilt.hxx
+++ b/sc/inc/pch/precompiled_scfilt.hxx
@@ -48,7 +48,6 @@
 #include <unordered_set>
 #include <utility>
 #include <vector>
-#include <boost/checked_delete.hpp>
 #include <boost/optional/optional.hpp>
 #include <osl/conditn.hxx>
 #include <osl/diagnose.h>
diff --git a/sc/source/core/data/column.cxx b/sc/source/core/data/column.cxx
index beb758a..af35e8c 100644
--- a/sc/source/core/data/column.cxx
+++ b/sc/source/core/data/column.cxx
@@ -58,7 +58,6 @@
 #include <cstring>
 #include <map>
 #include <cstdio>
-#include <boost/checked_delete.hpp>
 #include <memory>
 
 using ::editeng::SvxBorderLine;
@@ -2254,7 +2253,7 @@ class UpdateRefOnNonCopy : public std::unary_function<sc::FormulaGroupEntry, voi
 
         if (!mpUndoDoc->SetFormulaCells(rOldPos, aCells))
             // Insertion failed.  Delete all formula cells.
-            std::for_each(aCells.begin(), aCells.end(), boost::checked_deleter<ScFormulaCell>());
+            std::for_each(aCells.begin(), aCells.end(), std::default_delete<ScFormulaCell>());
     }
 
 public:
diff --git a/sc/source/core/data/columnspanset.cxx b/sc/source/core/data/columnspanset.cxx
index efb79d0e..acefdb2 100644
--- a/sc/source/core/data/columnspanset.cxx
+++ b/sc/source/core/data/columnspanset.cxx
@@ -15,9 +15,9 @@
 #include "markdata.hxx"
 #include "rangelst.hxx"
 #include <fstalgorithm.hxx>
-#include <boost/checked_delete.hpp>
 
 #include <algorithm>
+#include <memory>
 
 namespace sc {
 
@@ -67,7 +67,7 @@ ColumnSpanSet::~ColumnSpanSet()
         if (!pTab)
             continue;
 
-        std::for_each(pTab->begin(), pTab->end(), boost::checked_deleter<ColumnType>());
+        std::for_each(pTab->begin(), pTab->end(), std::default_delete<ColumnType>());
         delete pTab;
     }
 }
diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx
index f486e28..f02c8a3 100644
--- a/sc/source/core/data/document.cxx
+++ b/sc/source/core/data/document.cxx
@@ -104,7 +104,6 @@
 #include <limits>
 #include <map>
 #include <memory>
-#include <boost/checked_delete.hpp>
 
 #include <comphelper/lok.hxx>
 #include <LibreOfficeKit/LibreOfficeKitEnums.h>
@@ -832,7 +831,7 @@ bool ScDocument::DeleteTabs( SCTAB nTab, SCTAB nSheets )
 
                 TableContainer::iterator it = maTabs.begin() + nTab;
                 TableContainer::iterator itEnd = it + nSheets;
-                std::for_each(it, itEnd, boost::checked_deleter<ScTable>());
+                std::for_each(it, itEnd, std::default_delete<ScTable>());
                 maTabs.erase(it, itEnd);
                 // UpdateBroadcastAreas must be called between UpdateDeleteTab,
                 // which ends listening, and StartAllListeners, to not modify
diff --git a/sc/source/core/data/dptabres.cxx b/sc/source/core/data/dptabres.cxx
index a98d800..0d2c373 100644
--- a/sc/source/core/data/dptabres.cxx
+++ b/sc/source/core/data/dptabres.cxx
@@ -39,7 +39,6 @@
 #include <algorithm>
 #include <memory>
 #include <unordered_map>
-#include <boost/checked_delete.hpp>
 
 #include <com/sun/star/sheet/DataResultFlags.hpp>
 #include <com/sun/star/sheet/MemberResultFlags.hpp>
@@ -760,7 +759,7 @@ ScDPResultData::ScDPResultData( ScDPSource& rSrc ) :
 
 ScDPResultData::~ScDPResultData()
 {
-    std::for_each(maDimMembers.begin(), maDimMembers.end(), boost::checked_deleter<ResultMembers>());
+    std::for_each(maDimMembers.begin(), maDimMembers.end(), std::default_delete<ResultMembers>());
 }
 
 void ScDPResultData::SetMeasureData(
@@ -3545,7 +3544,7 @@ ScDPDataDimension::ScDPDataDimension( const ScDPResultData* pData ) :
 
 ScDPDataDimension::~ScDPDataDimension()
 {
-    std::for_each(maMembers.begin(), maMembers.end(), boost::checked_deleter<ScDPDataMember>());
+    std::for_each(maMembers.begin(), maMembers.end(), std::default_delete<ScDPDataMember>());
 }
 
 void ScDPDataDimension::InitFrom( const ScDPResultDimension* pDim )
diff --git a/sc/source/core/data/table3.cxx b/sc/source/core/data/table3.cxx
index fcd6984..64c082b 100644
--- a/sc/source/core/data/table3.cxx
+++ b/sc/source/core/data/table3.cxx
@@ -69,7 +69,6 @@
 #include <memory>
 #include <unordered_set>
 #include <vector>
-#include <boost/checked_delete.hpp>
 #include <mdds/flat_segment_tree.hpp>
 #include <o3tl/make_unique.hxx>
 
@@ -300,7 +299,7 @@ public:
         }
 
         if (mpRows)
-            std::for_each(mpRows->begin(), mpRows->end(), boost::checked_deleter<Row>());
+            std::for_each(mpRows->begin(), mpRows->end(), std::default_delete<Row>());
     }
 
     void SetKeepQuery( bool b ) { mbKeepQuery = b; }
diff --git a/sc/source/core/tool/chartlis.cxx b/sc/source/core/tool/chartlis.cxx
index c159f39..9bbd432 100644
--- a/sc/source/core/tool/chartlis.cxx
+++ b/sc/source/core/tool/chartlis.cxx
@@ -24,8 +24,6 @@
 #include "document.hxx"
 #include "reftokenhelper.hxx"
 
-#include <boost/checked_delete.hpp>
-
 using namespace com::sun::star;
 using ::std::vector;
 using ::std::unary_function;
@@ -591,7 +589,7 @@ void ScChartListenerCollection::FreeUno( const uno::Reference< chart::XChartData
     std::for_each(aUsed.begin(), aUsed.end(), InsertChartListener(m_Listeners));
 
     // Now, delete the ones no longer needed.
-    std::for_each(aUnused.begin(), aUnused.end(), boost::checked_deleter<ScChartListener>());
+    std::for_each(aUnused.begin(), aUnused.end(), std::default_delete<ScChartListener>());
 }
 
 void ScChartListenerCollection::StartTimer()
diff --git a/sc/source/core/tool/rangelst.cxx b/sc/source/core/tool/rangelst.cxx
index 8c40bf4f..8370f2d 100644
--- a/sc/source/core/tool/rangelst.cxx
+++ b/sc/source/core/tool/rangelst.cxx
@@ -26,8 +26,8 @@
 #include "refupdat.hxx"
 #include "rechead.hxx"
 #include "compiler.hxx"
-#include <boost/checked_delete.hpp>
 #include <algorithm>
+#include <memory>
 
 using ::std::vector;
 using ::std::advance;
@@ -1091,7 +1091,7 @@ void ScRangeList::Remove(size_t nPos)
 
 void ScRangeList::RemoveAll()
 {
-    for_each(maRanges.begin(), maRanges.end(), boost::checked_deleter<ScRange>());
+    for_each(maRanges.begin(), maRanges.end(), std::default_delete<ScRange>());
     maRanges.clear();
 }
 
@@ -1222,7 +1222,7 @@ ScRangeList ScRangeList::GetIntersectedRange(const ScRange& rRange) const
 //  ScRangePairList
 ScRangePairList::~ScRangePairList()
 {
-    for_each( maPairs.begin(), maPairs.end(), boost::checked_deleter<ScRangePair>() );
+    for_each( maPairs.begin(), maPairs.end(), std::default_delete<ScRangePair>() );
     maPairs.clear();
 }
 
diff --git a/sc/source/filter/xcl97/xcl97rec.cxx b/sc/source/filter/xcl97/xcl97rec.cxx
index 66c1805..3c94c05 100644
--- a/sc/source/filter/xcl97/xcl97rec.cxx
+++ b/sc/source/filter/xcl97/xcl97rec.cxx
@@ -77,7 +77,6 @@
 #include <oox/export/utils.hxx>
 #include <oox/export/vmlexport.hxx>
 
-#include <boost/checked_delete.hpp>
 #include <memory>
 
 using namespace ::com::sun::star;
@@ -108,7 +107,7 @@ XclExpObjList::XclExpObjList( const XclExpRoot& rRoot, XclEscherEx& rEscherEx )
 
 XclExpObjList::~XclExpObjList()
 {
-    std::for_each(maObjs.begin(), maObjs.end(), boost::checked_deleter<XclObj>());
+    std::for_each(maObjs.begin(), maObjs.end(), std::default_delete<XclObj>());
     delete pMsodrawingPerSheet;
     delete pSolverContainer;
 }
diff --git a/sc/source/ui/unoobj/chart2uno.cxx b/sc/source/ui/unoobj/chart2uno.cxx
index 5ff6356..582b0c6 100644
--- a/sc/source/ui/unoobj/chart2uno.cxx
+++ b/sc/source/ui/unoobj/chart2uno.cxx
@@ -60,7 +60,6 @@
 #include <comphelper/sequence.hxx>
 
 #include <rtl/math.hxx>
-#include <boost/checked_delete.hpp>
 
 SC_SIMPLE_SERVICE_INFO( ScChart2DataProvider, "ScChart2DataProvider",
         "com.sun.star.chart2.data.DataProvider")
@@ -163,7 +162,7 @@ struct TokenTable
     }
     void clear()
     {
-        std::for_each(maTokens.begin(), maTokens.end(), boost::checked_deleter<FormulaToken>());
+        std::for_each(maTokens.begin(), maTokens.end(), std::default_delete<FormulaToken>());
     }
 
     void push_back( FormulaToken* pToken )
diff --git a/sc/source/ui/view/viewdata.cxx b/sc/source/ui/view/viewdata.cxx
index b5ead95..67a2208 100644
--- a/sc/source/ui/view/viewdata.cxx
+++ b/sc/source/ui/view/viewdata.cxx
@@ -59,7 +59,6 @@
 #include "ViewSettingsSequenceDefines.hxx"
 #include <gridwin.hxx>
 #include <rtl/ustrbuf.hxx>
-#include <boost/checked_delete.hpp>
 #include <comphelper/flagguard.hxx>
 #include <comphelper/lok.hxx>
 #include <comphelper/processfactory.hxx>
@@ -498,7 +497,7 @@ ScViewData::~ScViewData()
     KillEditView();
     delete pOptions;
     ::std::for_each(
-        maTabData.begin(), maTabData.end(), boost::checked_deleter<ScViewDataTable>());
+        maTabData.begin(), maTabData.end(), std::default_delete<ScViewDataTable>());
 }
 
 void ScViewData::UpdateCurrentTab()
diff --git a/starmath/inc/pch/precompiled_sm.hxx b/starmath/inc/pch/precompiled_sm.hxx
index d63c2f0..785e752 100644
--- a/starmath/inc/pch/precompiled_sm.hxx
+++ b/starmath/inc/pch/precompiled_sm.hxx
@@ -38,7 +38,6 @@
 #include <string.h>
 #include <unordered_map>
 #include <vector>
-#include <boost/checked_delete.hpp>
 #include <boost/intrusive_ptr.hpp>
 #include <boost/optional/optional.hpp>
 #include <osl/diagnose.h>
diff --git a/starmath/source/node.cxx b/starmath/source/node.cxx
index e941c2d..a30dc3e 100644
--- a/starmath/source/node.cxx
+++ b/starmath/source/node.cxx
@@ -39,7 +39,6 @@
 #include <memory>
 #include <float.h>
 #include <vector>
-#include <boost/checked_delete.hpp>
 
 namespace {
 
@@ -374,7 +373,7 @@ const SmNode * SmNode::FindNodeWithAccessibleIndex(sal_Int32 nAccIdx) const
 
 SmStructureNode::~SmStructureNode()
 {
-    ForEachNonNull(this, boost::checked_deleter<SmNode>());
+    ForEachNonNull(this, std::default_delete<SmNode>());
 }
 
 
diff --git a/tools/inc/pch/precompiled_tl.hxx b/tools/inc/pch/precompiled_tl.hxx
index 6c73718..c906f41 100644
--- a/tools/inc/pch/precompiled_tl.hxx
+++ b/tools/inc/pch/precompiled_tl.hxx
@@ -33,7 +33,6 @@
 #include <stdlib.h>
 #include <string.h>
 #include <vector>
-#include <boost/checked_delete.hpp>
 #include <boost/optional/optional.hpp>
 #include <boost/rational.hpp>
 #include <osl/diagnose.h>
diff --git a/tools/source/fsys/urlobj.cxx b/tools/source/fsys/urlobj.cxx
index b841428..55caad8 100644
--- a/tools/source/fsys/urlobj.cxx
+++ b/tools/source/fsys/urlobj.cxx
@@ -19,7 +19,6 @@
 
 #include <sal/config.h>
 
-#include <boost/checked_delete.hpp>
 #include <tools/urlobj.hxx>
 #include <tools/debug.hxx>
 #include <tools/inetmime.hxx>
@@ -564,7 +563,7 @@ namespace {
 std::unique_ptr<SvMemoryStream> memoryStream(
         void const * data, sal_Int32 length)
 {
-    std::unique_ptr<char, boost::checked_array_deleter<char> > b(
+    std::unique_ptr<char[]> b(
         new char[length]);
     memcpy(b.get(), data, length);
     std::unique_ptr<SvMemoryStream> s(


More information about the Libreoffice-commits mailing list