diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-09-17 18:59:32 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-09-17 18:59:32 +0100 |
commit | d030c4a2a54418b17e87f837092a33eae21f0588 (patch) | |
tree | dd80ff3ba78eaa03e98efeb87e9160c6cd7524c5 /sc/inc | |
parent | 558b08d55f69b04eea42a37abd97fbb4dbe3602f (diff) |
revert for mac and win unit case crashes after boost->std
Change-Id: I82c7084f203a834c2d42f9527705288e6036019b
Diffstat (limited to 'sc/inc')
30 files changed, 119 insertions, 102 deletions
diff --git a/sc/inc/cellsuno.hxx b/sc/inc/cellsuno.hxx index f36c3cf751ae..d721b29b092d 100644 --- a/sc/inc/cellsuno.hxx +++ b/sc/inc/cellsuno.hxx @@ -89,8 +89,8 @@ #include <com/sun/star/sheet/XExternalSheetName.hpp> #include <com/sun/star/document/XEventsSupplier.hpp> #include <cppuhelper/implbase.hxx> +#include <boost/scoped_ptr.hpp> -#include <memory> #include <vector> class ScDocShell; @@ -506,7 +506,7 @@ class SC_DLLPUBLIC ScCellRangesObj : public ScCellRangesBase, { private: struct Impl; - std::unique_ptr<Impl> m_pImpl; + ::boost::scoped_ptr<Impl> m_pImpl; ScCellRangeObj* GetObjectByIndex_Impl(sal_Int32 nIndex) const; diff --git a/sc/inc/chart2uno.hxx b/sc/inc/chart2uno.hxx index 54cfd98f5fac..68387a608f53 100644 --- a/sc/inc/chart2uno.hxx +++ b/sc/inc/chart2uno.hxx @@ -47,10 +47,11 @@ #include <svl/itemprop.hxx> #include <list> -#include <memory> #include <unordered_set> #include <vector> +#include <boost/shared_ptr.hpp> #include <boost/noncopyable.hpp> +#include <boost/scoped_ptr.hpp> class ScDocument; @@ -452,9 +453,9 @@ private: bool m_bIncludeHiddenCells; // internals - typedef std::unique_ptr<std::vector<ScTokenRef> > TokenListPtr; - typedef std::unique_ptr<std::vector<sal_uInt32> > RangeIndexMapPtr; - typedef std::unique_ptr<ExternalRefListener> ExtRefListenerPtr; + typedef boost::scoped_ptr<std::vector<ScTokenRef> > TokenListPtr; + typedef boost::scoped_ptr<std::vector<sal_uInt32> > RangeIndexMapPtr; + typedef boost::scoped_ptr<ExternalRefListener> ExtRefListenerPtr; sal_Int64 m_nObjectId; ScDocument* m_pDocument; @@ -464,7 +465,7 @@ private: com::sun::star::uno::Reference < com::sun::star::chart2::data::XDataProvider > m_xDataProvider; SfxItemPropertySet m_aPropSet; - std::unique_ptr<HiddenRangeListener> m_pHiddenListener; + boost::scoped_ptr<HiddenRangeListener> m_pHiddenListener; ScLinkListener* m_pValueListener; XModifyListenerArr_Impl m_aValueListeners; diff --git a/sc/inc/chartlis.hxx b/sc/inc/chartlis.hxx index b634b91602e9..8b29b9933d26 100644 --- a/sc/inc/chartlis.hxx +++ b/sc/inc/chartlis.hxx @@ -27,11 +27,12 @@ #include "token.hxx" #include "externalrefmgr.hxx" +#include <vector> + +#include <boost/scoped_ptr.hpp> #include <boost/ptr_container/ptr_map.hpp> -#include <memory> #include <unordered_map> #include <unordered_set> -#include <vector> class ScDocument; class ScChartUnoData; @@ -61,8 +62,8 @@ public: private: - std::unique_ptr<ExternalRefListener> mpExtRefListener; - std::unique_ptr<std::vector<ScTokenRef> > mpTokens; + boost::scoped_ptr<ExternalRefListener> mpExtRefListener; + boost::scoped_ptr<std::vector<ScTokenRef> > mpTokens; OUString maName; ScChartUnoData* pUnoData; diff --git a/sc/inc/clipcontext.hxx b/sc/inc/clipcontext.hxx index 783c6bd49728..787b964a699b 100644 --- a/sc/inc/clipcontext.hxx +++ b/sc/inc/clipcontext.hxx @@ -14,9 +14,9 @@ #include "cellvalue.hxx" #include <celltextattr.hxx> -#include <memory> #include <vector> #include <boost/noncopyable.hpp> +#include <boost/scoped_ptr.hpp> class ScDocument; class ScColumn; @@ -31,7 +31,7 @@ class ColumnBlockPositionSet; class ClipContextBase : boost::noncopyable { - std::unique_ptr<ColumnBlockPositionSet> mpSet; + boost::scoped_ptr<ColumnBlockPositionSet> mpSet; ClipContextBase(); // disabled diff --git a/sc/inc/colorscale.hxx b/sc/inc/colorscale.hxx index e0884c757b6d..5514e0269016 100644 --- a/sc/inc/colorscale.hxx +++ b/sc/inc/colorscale.hxx @@ -11,6 +11,7 @@ #define INCLUDED_SC_INC_COLORSCALE_HXX #include <boost/ptr_container/ptr_vector.hpp> +#include <boost/scoped_ptr.hpp> #include <formula/grammar.hxx> #include <tools/color.hxx> #include "rangelst.hxx" @@ -19,7 +20,6 @@ #include <svl/listener.hxx> #include <svl/broadcast.hxx> -#include <memory> #include <vector> //TODO: merge this with conditio.hxx @@ -50,8 +50,8 @@ class SC_DLLPUBLIC ScColorScaleEntry private: double mnVal; Color maColor; - std::unique_ptr<ScFormulaCell> mpCell; - std::unique_ptr<ScFormulaListener> mpListener; + boost::scoped_ptr<ScFormulaCell> mpCell; + boost::scoped_ptr<ScFormulaListener> mpListener; ScColorScaleEntryType meType; public: @@ -133,7 +133,7 @@ struct SC_DLLPUBLIC ScDataBarFormatData * * Default color is 0xFF0000, this value is not set */ - std::unique_ptr<Color> mpNegativeColor; + boost::scoped_ptr<Color> mpNegativeColor; /** * Color of the axis if used * Default color is black @@ -177,8 +177,8 @@ struct SC_DLLPUBLIC ScDataBarFormatData */ bool mbOnlyBar; - std::unique_ptr<ScColorScaleEntry> mpUpperLimit; - std::unique_ptr<ScColorScaleEntry> mpLowerLimit; + boost::scoped_ptr<ScColorScaleEntry> mpUpperLimit; + boost::scoped_ptr<ScColorScaleEntry> mpLowerLimit; }; enum ScIconSetType @@ -242,7 +242,7 @@ private: { std::vector<double> maValues; }; - mutable std::unique_ptr<ScColorFormatCache> mpCache; + mutable boost::scoped_ptr<ScColorFormatCache> mpCache; }; typedef std::vector<std::unique_ptr<ScColorScaleEntry>> ScColorScaleEntries; @@ -323,7 +323,7 @@ private: double getMin(double nMin, double nMax) const; double getMax(double nMin, double nMax) const; - std::unique_ptr<ScDataBarFormatData> mpFormatData; + boost::scoped_ptr<ScDataBarFormatData> mpFormatData; }; struct ScIconSetFormatData @@ -396,7 +396,7 @@ private: double GetMaxValue() const; double CalcValue(double nMin, double nMax, ScIconSetFormat::const_iterator& itr) const; - std::unique_ptr<ScIconSetFormatData> mpFormatData; + boost::scoped_ptr<ScIconSetFormatData> mpFormatData; }; #endif diff --git a/sc/inc/conditio.hxx b/sc/inc/conditio.hxx index 839c5b0080ae..5893585bb0da 100644 --- a/sc/inc/conditio.hxx +++ b/sc/inc/conditio.hxx @@ -32,10 +32,10 @@ #include <tools/date.hxx> #include <map> -#include <memory> #include <set> #include <boost/noncopyable.hpp> +#include <boost/scoped_ptr.hpp> class ScFormulaCell; class ScTokenArray; @@ -280,7 +280,7 @@ private: nValueItems(0) {} }; - mutable std::unique_ptr<ScConditionEntryCache> mpCache; + mutable boost::scoped_ptr<ScConditionEntryCache> mpCache; }; // single condition entry for conditional formatting @@ -370,7 +370,7 @@ public: private: condformat::ScCondFormatDateType meType; - mutable std::unique_ptr<Date> mpCache; + mutable boost::scoped_ptr<Date> mpCache; OUString maStyleName; }; diff --git a/sc/inc/dbdata.hxx b/sc/inc/dbdata.hxx index 8d136411dfe5..1f825e75e956 100644 --- a/sc/inc/dbdata.hxx +++ b/sc/inc/dbdata.hxx @@ -28,6 +28,8 @@ #include <svl/listener.hxx> +#include <boost/scoped_ptr.hpp> + #include <memory> #include <set> #include <vector> @@ -63,10 +65,10 @@ protected: class ScDBData : public SvtListener, public ScRefreshTimer { private: - std::unique_ptr<ScSortParam> mpSortParam; - std::unique_ptr<ScQueryParam> mpQueryParam; - std::unique_ptr<ScSubTotalParam> mpSubTotal; - std::unique_ptr<ScImportParam> mpImportParam; + boost::scoped_ptr<ScSortParam> mpSortParam; + boost::scoped_ptr<ScQueryParam> mpQueryParam; + boost::scoped_ptr<ScSubTotalParam> mpSubTotal; + boost::scoped_ptr<ScImportParam> mpImportParam; ScDBDataContainerBase* mpContainer; diff --git a/sc/inc/dociter.hxx b/sc/inc/dociter.hxx index 013a6e290956..49a782e3fe3c 100644 --- a/sc/inc/dociter.hxx +++ b/sc/inc/dociter.hxx @@ -30,8 +30,11 @@ #include <vcl/vclptr.hxx> #include <memory> + #include <set> #include <vector> +#include <boost/shared_ptr.hpp> +#include <boost/scoped_ptr.hpp> class ScDocument; class ScPatternAttr; @@ -268,7 +271,7 @@ class ScQueryCellIterator // walk through all non-empty cells in an ar typedef sc::CellStoreType::const_position_type PositionType; PositionType maCurPos; - std::unique_ptr<ScQueryParam> mpParam; + boost::scoped_ptr<ScQueryParam> mpParam; ScDocument* pDoc; const ScAttrArray* pAttrArray; sal_uLong nNumFormat; @@ -584,7 +587,7 @@ public: struct TabRanges { SCTAB mnTab; - std::shared_ptr<ScFlatBoolRowSegments> mpRanges; + ::boost::shared_ptr<ScFlatBoolRowSegments> mpRanges; TabRanges(SCTAB nTab); }; diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx index afa2b7eaebd3..7016d7f88911 100644 --- a/sc/inc/document.hxx +++ b/sc/inc/document.hxx @@ -45,6 +45,8 @@ #include <set> #include <vector> #include <boost/ptr_container/ptr_vector.hpp> +#include <boost/scoped_ptr.hpp> +#include <boost/shared_ptr.hpp> #include "markdata.hxx" @@ -273,7 +275,7 @@ friend class sc::ColumnSpanSet; friend class sc::EditTextIterator; friend class sc::FormulaGroupAreaListener; - typedef std::vector<ScTable*> TableContainer; + typedef ::std::vector<ScTable*> TableContainer; public: enum HardRecalcState @@ -287,9 +289,9 @@ private: rtl::Reference<ScPoolHelper> xPoolHelper; - std::shared_ptr<svl::SharedStringPool> mpCellStringPool; - std::unique_ptr<sc::FormulaGroupContext> mpFormulaGroupCxt; - mutable std::unique_ptr<sc::DocumentLinkManager> mpDocLinkMgr; + boost::shared_ptr<svl::SharedStringPool> mpCellStringPool; + boost::scoped_ptr<sc::FormulaGroupContext> mpFormulaGroupCxt; + mutable boost::scoped_ptr<sc::DocumentLinkManager> mpDocLinkMgr; ScCalcConfig maCalcConfig; @@ -331,14 +333,14 @@ private: ScFieldEditEngine* pCacheFieldEditEngine; - std::unique_ptr<ScDocProtection> pDocProtection; - std::unique_ptr<ScClipParam> mpClipParam; + ::std::unique_ptr<ScDocProtection> pDocProtection; + ::std::unique_ptr<ScClipParam> mpClipParam; - std::unique_ptr<ScExternalRefManager> pExternalRefMgr; - std::unique_ptr<ScMacroManager> mpMacroMgr; + ::std::unique_ptr<ScExternalRefManager> pExternalRefMgr; + ::std::unique_ptr<ScMacroManager> mpMacroMgr; // mutable for lazy construction - mutable std::unique_ptr< ScFormulaParserPool > + mutable ::std::unique_ptr< ScFormulaParserPool > mxFormulaParserPool; /// Pool for all external formula parsers used by this document. OUString aDocName; // optional: name of document @@ -467,7 +469,7 @@ private: sal_Int16 mnNamedRangesLockCount; - std::set<ScFormulaCell*> maSubTotalCells; + ::std::set<ScFormulaCell*> maSubTotalCells; bool mbUseEmbedFonts; @@ -589,8 +591,8 @@ public: ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XChartDocument > GetChartByName( const OUString& rChartName ); - SC_DLLPUBLIC void GetChartRanges( const OUString& rChartName, std::vector< ScRangeList >& rRanges, ScDocument* pSheetNameDoc ); - void SetChartRanges( const OUString& rChartName, const std::vector< ScRangeList >& rRanges ); + SC_DLLPUBLIC void GetChartRanges( const OUString& rChartName, ::std::vector< ScRangeList >& rRanges, ScDocument* pSheetNameDoc ); + void SetChartRanges( const OUString& rChartName, const ::std::vector< ScRangeList >& rRanges ); void UpdateChartArea( const OUString& rChartName, const ScRange& rNewArea, bool bColHeaders, bool bRowHeaders, bool bAdd ); @@ -1601,8 +1603,8 @@ public: SC_DLLPUBLIC sal_uInt8 GetColFlags( SCCOL nCol, SCTAB nTab ) const; SC_DLLPUBLIC sal_uInt8 GetRowFlags( SCROW nRow, SCTAB nTab ) const; - SC_DLLPUBLIC void GetAllRowBreaks(std::set<SCROW>& rBreaks, SCTAB nTab, bool bPage, bool bManual) const; - SC_DLLPUBLIC void GetAllColBreaks(std::set<SCCOL>& rBreaks, SCTAB nTab, bool bPage, bool bManual) const; + SC_DLLPUBLIC void GetAllRowBreaks(::std::set<SCROW>& rBreaks, SCTAB nTab, bool bPage, bool bManual) const; + SC_DLLPUBLIC void GetAllColBreaks(::std::set<SCCOL>& rBreaks, SCTAB nTab, bool bPage, bool bManual) const; SC_DLLPUBLIC ScBreakType HasRowBreak(SCROW nRow, SCTAB nTab) const; SC_DLLPUBLIC ScBreakType HasColBreak(SCCOL nCol, SCTAB nTab) const; SC_DLLPUBLIC void SetRowBreak(SCROW nRow, SCTAB nTab, bool bPage, bool bManual); diff --git a/sc/inc/documentstreamaccess.hxx b/sc/inc/documentstreamaccess.hxx index 81e0fbca728c..52335df7735b 100644 --- a/sc/inc/documentstreamaccess.hxx +++ b/sc/inc/documentstreamaccess.hxx @@ -11,7 +11,7 @@ #define INCLUDED_SC_INC_DOCUMENTSTREAMACCESS_HXX #include <rtl/ustring.hxx> -#include <memory> +#include <boost/scoped_ptr.hpp> class ScDocument; class ScAddress; @@ -27,7 +27,7 @@ struct DocumentStreamAccessImpl; */ class DocumentStreamAccess { - std::unique_ptr<DocumentStreamAccessImpl> mpImpl; + boost::scoped_ptr<DocumentStreamAccessImpl> mpImpl; DocumentStreamAccess(); diff --git a/sc/inc/dpcache.hxx b/sc/inc/dpcache.hxx index 799c8c34b110..b778086bee77 100644 --- a/sc/inc/dpcache.hxx +++ b/sc/inc/dpcache.hxx @@ -25,13 +25,13 @@ #include <tools/date.hxx> #include <boost/noncopyable.hpp> +#include <boost/scoped_ptr.hpp> #include <boost/ptr_container/ptr_vector.hpp> #include <mdds/flat_segment_tree.hpp> -#include <memory> -#include <set> #include <unordered_set> #include <vector> +#include <set> struct ScQueryParam; class ScDPObject; @@ -67,7 +67,7 @@ public: /** * Optional items for grouped field. */ - std::unique_ptr<GroupItems> mpGroup; + boost::scoped_ptr<GroupItems> mpGroup; /** * Unique values in the field, stored in ascending order. diff --git a/sc/inc/dpfilteredcache.hxx b/sc/inc/dpfilteredcache.hxx index 857ab7661d27..8ec5f8bd19fc 100644 --- a/sc/inc/dpfilteredcache.hxx +++ b/sc/inc/dpfilteredcache.hxx @@ -26,9 +26,9 @@ #include "dpitemdata.hxx" #include "calcmacros.hxx" -#include <memory> #include <unordered_set> #include <vector> +#include <boost/shared_ptr.hpp> #include <mdds/flat_segment_tree.hpp> @@ -95,7 +95,7 @@ public: struct Criterion { sal_Int32 mnFieldIndex; - std::shared_ptr<FilterBase> mpFilter; + ::boost::shared_ptr<FilterBase> mpFilter; Criterion(); }; diff --git a/sc/inc/dpgroup.hxx b/sc/inc/dpgroup.hxx index 805affeff6cb..e59b38a44a4c 100644 --- a/sc/inc/dpgroup.hxx +++ b/sc/inc/dpgroup.hxx @@ -20,9 +20,9 @@ #ifndef INCLUDED_SC_INC_DPGROUP_HXX #define INCLUDED_SC_INC_DPGROUP_HXX -#include <memory> #include <unordered_set> #include <vector> +#include <boost/shared_ptr.hpp> #include "dptabdat.hxx" #include "scdllapi.h" @@ -121,7 +121,7 @@ class ScDPGroupTableData : public ScDPTableData { typedef std::unordered_set< OUString, OUStringHash, ::std::equal_to< OUString > > StringHashSet; - std::shared_ptr<ScDPTableData> pSourceData; + ::boost::shared_ptr<ScDPTableData> pSourceData; long nSourceCount; ScDPGroupDimensionVec aGroups; ScDPNumGroupDimension* pNumGroups; // array[nSourceCount] @@ -138,10 +138,10 @@ class ScDPGroupTableData : public ScDPTableData public: // takes ownership of pSource - ScDPGroupTableData( const std::shared_ptr<ScDPTableData>& pSource, ScDocument* pDocument ); + ScDPGroupTableData( const ::boost::shared_ptr<ScDPTableData>& pSource, ScDocument* pDocument ); virtual ~ScDPGroupTableData(); - std::shared_ptr<ScDPTableData> GetSourceTableData() { return pSourceData;} + boost::shared_ptr<ScDPTableData> GetSourceTableData() { return pSourceData;} void AddGroupDimension( const ScDPGroupDimension& rGroup ); void SetNumGroupDimension( long nIndex, const ScDPNumGroupDimension& rGroup ); diff --git a/sc/inc/dpobject.hxx b/sc/inc/dpobject.hxx index dd0a3c973962..a167194683a2 100644 --- a/sc/inc/dpobject.hxx +++ b/sc/inc/dpobject.hxx @@ -30,13 +30,13 @@ #include <com/sun/star/sheet/XDimensionsSupplier.hpp> -#include <memory> #include <set> #include <vector> #include <boost/ptr_container/ptr_list.hpp> #include <boost/ptr_container/ptr_vector.hpp> #include <boost/ptr_container/ptr_map.hpp> +#include <boost/shared_ptr.hpp> namespace com { namespace sun { namespace star { @@ -92,7 +92,7 @@ private: ScSheetSourceDesc* pSheetDesc; // for sheet data ScImportSourceDesc* pImpDesc; // for database data ScDPServiceDesc* pServDesc; // for external service - std::shared_ptr<ScDPTableData> mpTableData; + ::boost::shared_ptr<ScDPTableData> mpTableData; // cached data com::sun::star::uno::Reference<com::sun::star::sheet::XDimensionsSupplier> xSource; ScDPOutput* pOutput; diff --git a/sc/inc/dpsave.hxx b/sc/inc/dpsave.hxx index c81a690f78cf..9973b991faee 100644 --- a/sc/inc/dpsave.hxx +++ b/sc/inc/dpsave.hxx @@ -21,9 +21,9 @@ #define INCLUDED_SC_INC_DPSAVE_HXX #include <list> -#include <memory> #include <boost/ptr_container/ptr_vector.hpp> +#include <boost/scoped_ptr.hpp> #include <com/sun/star/sheet/XDimensionsSupplier.hpp> #include <com/sun/star/sheet/DataPilotFieldOrientation.hpp> @@ -52,7 +52,7 @@ class ScDPSaveMember { private: OUString aName; - std::unique_ptr<OUString> mpLayoutName; // custom name to be displayed in the table. + boost::scoped_ptr<OUString> mpLayoutName; // custom name to be displayed in the table. sal_uInt16 nVisibleMode; sal_uInt16 nShowDetailsMode; @@ -98,8 +98,8 @@ class SC_DLLPUBLIC ScDPSaveDimension { private: OUString aName; - std::unique_ptr<OUString> mpLayoutName; - std::unique_ptr<OUString> mpSubtotalName; + boost::scoped_ptr<OUString> mpLayoutName; + boost::scoped_ptr<OUString> mpSubtotalName; bool bIsDataLayout; bool bDupFlag; sal_uInt16 nOrientation; @@ -258,8 +258,8 @@ private: * created. */ bool mbDimensionMembersBuilt; - std::unique_ptr<OUString> mpGrandTotalName; - mutable std::unique_ptr<DimOrderType> mpDimOrder; // dimension order for row and column dimensions, to traverse result tree. + boost::scoped_ptr<OUString> mpGrandTotalName; + mutable boost::scoped_ptr<DimOrderType> mpDimOrder; // dimension order for row and column dimensions, to traverse result tree. public: SC_DLLPUBLIC ScDPSaveData(); diff --git a/sc/inc/dptabsrc.hxx b/sc/inc/dptabsrc.hxx index 4f63a8258861..cdae3af4f413 100644 --- a/sc/inc/dptabsrc.hxx +++ b/sc/inc/dptabsrc.hxx @@ -48,8 +48,8 @@ #include "dpresfilter.hxx" #include <boost/noncopyable.hpp> +#include <boost/scoped_ptr.hpp> #include <list> -#include <memory> #include <unordered_map> #include <unordered_set> #include <vector> @@ -319,8 +319,8 @@ class ScDPDimension : boost::noncopyable, public cppu::WeakImplHelper< long nUsedHier; sal_uInt16 nFunction; // enum GeneralFunction OUString aName; // if empty, take from source - std::unique_ptr<OUString> mpLayoutName; - std::unique_ptr<OUString> mpSubtotalName; + boost::scoped_ptr<OUString> mpLayoutName; + boost::scoped_ptr<OUString> mpSubtotalName; long nSourceDim; // >=0 if dup'ed ::com::sun::star::sheet::DataPilotFieldReference aReferenceValue; // settings for "show data as" / "displayed value" @@ -732,7 +732,7 @@ private: long nLev; SCROW mnDataId; - std::unique_ptr<OUString> mpLayoutName; + boost::scoped_ptr<OUString> mpLayoutName; sal_Int32 nPosition; // manual sorting bool bVisible; diff --git a/sc/inc/editdataarray.hxx b/sc/inc/editdataarray.hxx index a917dcdbb640..e13a4b1c6f20 100644 --- a/sc/inc/editdataarray.hxx +++ b/sc/inc/editdataarray.hxx @@ -23,8 +23,8 @@ #include "address.hxx" #include <editeng/editobj.hxx> -#include <memory> #include <vector> +#include <boost/shared_ptr.hpp> class EditTextObject; @@ -48,8 +48,8 @@ public: Item(); // disabled private: - std::shared_ptr<EditTextObject> mpOldData; - std::shared_ptr<EditTextObject> mpNewData; + ::boost::shared_ptr<EditTextObject> mpOldData; + ::boost::shared_ptr<EditTextObject> mpNewData; SCTAB mnTab; SCCOL mnCol; SCROW mnRow; diff --git a/sc/inc/externalrefmgr.hxx b/sc/inc/externalrefmgr.hxx index bb8b44cba0b5..be513510ac6d 100644 --- a/sc/inc/externalrefmgr.hxx +++ b/sc/inc/externalrefmgr.hxx @@ -34,7 +34,7 @@ #include <formula/token.hxx> #include <osl/mutex.hxx> -#include <memory> +#include <boost/shared_ptr.hpp> #include <unordered_map> #include <unordered_set> #include <vector> @@ -91,7 +91,7 @@ class ScExternalRefCache { public: typedef ::formula::FormulaTokenRef TokenRef; - typedef std::shared_ptr<ScTokenArray> TokenArrayRef; + typedef ::boost::shared_ptr<ScTokenArray> TokenArrayRef; struct TableName { @@ -198,7 +198,7 @@ public: ReferencedFlag meReferenced; }; - typedef std::shared_ptr<Table> TableTypeRef; + typedef ::boost::shared_ptr<Table> TableTypeRef; typedef std::unordered_map< OUString, size_t, OUStringHash> TableNameIndexMap; diff --git a/sc/inc/fielduno.hxx b/sc/inc/fielduno.hxx index ed2e72c961e8..905e907953f5 100644 --- a/sc/inc/fielduno.hxx +++ b/sc/inc/fielduno.hxx @@ -40,7 +40,7 @@ #include <osl/mutex.hxx> #include <boost/noncopyable.hpp> -#include <memory> +#include <boost/scoped_ptr.hpp> class ScEditSource; class SvxFieldItem; @@ -207,7 +207,7 @@ class ScEditFieldObj : public cppu::WeakImplHelper< ESelection aSelection; sal_Int32 meType; - std::unique_ptr<SvxFieldData> mpData; + boost::scoped_ptr<SvxFieldData> mpData; com::sun::star::uno::Reference<com::sun::star::text::XTextRange> mpContent; com::sun::star::util::DateTime maDateTime; diff --git a/sc/inc/importfilterdata.hxx b/sc/inc/importfilterdata.hxx index 8ea1473114f8..089f427d2bfc 100644 --- a/sc/inc/importfilterdata.hxx +++ b/sc/inc/importfilterdata.hxx @@ -13,7 +13,7 @@ #include "address.hxx" #include <boost/noncopyable.hpp> -#include <memory> +#include <boost/scoped_ptr.hpp> namespace sc { @@ -39,7 +39,7 @@ struct ImportPostProcessData : boost::noncopyable DataStream(); }; - std::unique_ptr<DataStream> mpDataStream; + boost::scoped_ptr<DataStream> mpDataStream; }; } diff --git a/sc/inc/listenercontext.hxx b/sc/inc/listenercontext.hxx index fe40dea10127..000a5beca7e7 100644 --- a/sc/inc/listenercontext.hxx +++ b/sc/inc/listenercontext.hxx @@ -14,7 +14,8 @@ #include "columnspanset.hxx" #include <boost/noncopyable.hpp> -#include <memory> +#include <boost/scoped_ptr.hpp> +#include <boost/shared_ptr.hpp> class ScDocument; class ScTokenArray; @@ -27,10 +28,10 @@ class ColumnBlockPositionSet; class StartListeningContext : boost::noncopyable { ScDocument& mrDoc; - std::shared_ptr<ColumnBlockPositionSet> mpSet; + boost::shared_ptr<ColumnBlockPositionSet> mpSet; public: StartListeningContext(ScDocument& rDoc); - StartListeningContext(ScDocument& rDoc, const std::shared_ptr<ColumnBlockPositionSet>& pSet); + StartListeningContext(ScDocument& rDoc, const boost::shared_ptr<ColumnBlockPositionSet>& pSet); ScDocument& getDoc() { return mrDoc;} ColumnBlockPosition* getBlockPosition(SCTAB nTab, SCCOL nCol); @@ -40,13 +41,13 @@ class EndListeningContext : boost::noncopyable { ScDocument& mrDoc; ColumnSpanSet maSet; - std::shared_ptr<ColumnBlockPositionSet> mpPosSet; + boost::shared_ptr<ColumnBlockPositionSet> mpPosSet; ScTokenArray* mpOldCode; ScAddress maPosDelta; // Add this to get the old position prior to the move. public: EndListeningContext(ScDocument& rDoc, ScTokenArray* pOldCode = NULL); - EndListeningContext(ScDocument& rDoc, const std::shared_ptr<ColumnBlockPositionSet>& pSet, ScTokenArray* pOldCode = NULL); + EndListeningContext(ScDocument& rDoc, const boost::shared_ptr<ColumnBlockPositionSet>& pSet, ScTokenArray* pOldCode = NULL); void setPositionDelta( const ScAddress& rDelta ); @@ -63,7 +64,7 @@ public: class PurgeListenerAction : public ColumnSpanSet::Action, boost::noncopyable { ScDocument& mrDoc; - std::unique_ptr<ColumnBlockPosition> mpBlockPos; + boost::scoped_ptr<ColumnBlockPosition> mpBlockPos; public: PurgeListenerAction( ScDocument& rDoc ); diff --git a/sc/inc/pch/precompiled_sc.hxx b/sc/inc/pch/precompiled_sc.hxx index 4a0a1e9e4025..9f6258bca087 100644 --- a/sc/inc/pch/precompiled_sc.hxx +++ b/sc/inc/pch/precompiled_sc.hxx @@ -42,6 +42,8 @@ #include <boost/ptr_container/ptr_map.hpp> #include <boost/ptr_container/ptr_vector.hpp> #include <memory> +#include <boost/scoped_ptr.hpp> +#include <boost/shared_ptr.hpp> #include <cassert> #include <climits> #include <com/sun/star/accessibility/AccessibleEventId.hpp> diff --git a/sc/inc/pch/precompiled_scfilt.hxx b/sc/inc/pch/precompiled_scfilt.hxx index 5eb13baa217b..32480a7c3ef2 100644 --- a/sc/inc/pch/precompiled_scfilt.hxx +++ b/sc/inc/pch/precompiled_scfilt.hxx @@ -23,6 +23,8 @@ #include <boost/noncopyable.hpp> #include <boost/ptr_container/ptr_vector.hpp> #include <memory> +#include <boost/scoped_ptr.hpp> +#include <boost/shared_ptr.hpp> #include <cassert> #include <com/sun/star/awt/DeviceInfo.hpp> #include <com/sun/star/awt/FontDescriptor.hpp> diff --git a/sc/inc/pch/precompiled_scui.hxx b/sc/inc/pch/precompiled_scui.hxx index 4b7fd177bb42..fbd83f1a8c0a 100644 --- a/sc/inc/pch/precompiled_scui.hxx +++ b/sc/inc/pch/precompiled_scui.hxx @@ -19,6 +19,7 @@ #include <basic/sbmod.hxx> #include <basic/sbstar.hxx> #include <memory> +#include <boost/scoped_ptr.hpp> #include <cmath> #include <com/sun/star/frame/Desktop.hpp> #include <com/sun/star/frame/XDesktop2.hpp> diff --git a/sc/inc/pch/precompiled_vbaobj.hxx b/sc/inc/pch/precompiled_vbaobj.hxx index 90120f43e004..130a34cf90fc 100644 --- a/sc/inc/pch/precompiled_vbaobj.hxx +++ b/sc/inc/pch/precompiled_vbaobj.hxx @@ -22,6 +22,7 @@ #include <basic/sbuno.hxx> #include <basic/sbx.hxx> #include <basic/sbxobj.hxx> +#include <boost/scoped_ptr.hpp> #include <com/sun/star/awt/FontSlant.hpp> #include <com/sun/star/awt/FontStrikeout.hpp> #include <com/sun/star/awt/FontUnderline.hpp> diff --git a/sc/inc/postit.hxx b/sc/inc/postit.hxx index 98a89f7329c5..7a376d22e064 100644 --- a/sc/inc/postit.hxx +++ b/sc/inc/postit.hxx @@ -20,12 +20,12 @@ #ifndef INCLUDED_SC_INC_POSTIT_HXX #define INCLUDED_SC_INC_POSTIT_HXX +#include <boost/shared_ptr.hpp> #include <rtl/ustring.hxx> #include "address.hxx" #include "scdllapi.h" #include <map> -#include <memory> class EditTextObject; class OutlinerParaObject; @@ -39,7 +39,7 @@ struct ScCaptionInitData; /** Internal data for a cell annotation. */ struct SC_DLLPUBLIC ScNoteData { - typedef std::shared_ptr< ScCaptionInitData > ScCaptionInitDataRef; + typedef ::boost::shared_ptr< ScCaptionInitData > ScCaptionInitDataRef; OUString maDate; /// Creation date of the note. OUString maAuthor; /// Author of the note. diff --git a/sc/inc/simpleformulacalc.hxx b/sc/inc/simpleformulacalc.hxx index 081823de12ce..f12e26165eba 100644 --- a/sc/inc/simpleformulacalc.hxx +++ b/sc/inc/simpleformulacalc.hxx @@ -10,7 +10,7 @@ #ifndef INCLUDED_SC_INC_SIMPLEFORMULACALC_HXX #define INCLUDED_SC_INC_SIMPLEFORMULACALC_HXX -#include <memory> +#include <boost/scoped_ptr.hpp> #include <formula/grammar.hxx> #include "address.hxx" @@ -26,7 +26,7 @@ private: sal_uLong mnFormatIndex; bool mbCalculated; - std::unique_ptr<ScTokenArray> mpCode; + boost::scoped_ptr<ScTokenArray> mpCode; ScAddress maAddr; ScDocument* mpDoc; ScFormulaResult maResult; diff --git a/sc/inc/simplerangelist.hxx b/sc/inc/simplerangelist.hxx index bf672ea19f12..1fcbefd9d832 100644 --- a/sc/inc/simplerangelist.hxx +++ b/sc/inc/simplerangelist.hxx @@ -20,11 +20,12 @@ #ifndef INCLUDED_SC_INC_SIMPLERANGELIST_HXX #define INCLUDED_SC_INC_SIMPLERANGELIST_HXX +#include <boost/shared_ptr.hpp> + #include "address.hxx" -#include <list> #include <map> -#include <memory> +#include <list> class ScRange; class ScRangeList; @@ -46,7 +47,7 @@ public: SCROW mnRow2; explicit Range(SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2); }; - typedef std::shared_ptr< ::std::list<Range> > RangeListRef; + typedef ::boost::shared_ptr< ::std::list<Range> > RangeListRef; typedef ::std::map<SCTAB, RangeListRef> TabType; ScSimpleRangeList(); diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx index 8a12532f1f86..77330b3d4367 100644 --- a/sc/inc/table.hxx +++ b/sc/inc/table.hxx @@ -36,7 +36,7 @@ #include <set> #include <map> -#include <memory> +#include <boost/scoped_ptr.hpp> #include <boost/noncopyable.hpp> namespace utl { @@ -140,17 +140,17 @@ private: SCROW nRepeatStartY; SCROW nRepeatEndY; - std::unique_ptr<ScTableProtection> pTabProtection; + boost::scoped_ptr<ScTableProtection> pTabProtection; sal_uInt16* pColWidth; - std::unique_ptr<ScFlatUInt16RowSegments> mpRowHeights; + boost::scoped_ptr<ScFlatUInt16RowSegments> mpRowHeights; sal_uInt8* pColFlags; ScBitMaskCompressedArray< SCROW, sal_uInt8>* pRowFlags; - std::unique_ptr<ScFlatBoolColSegments> mpHiddenCols; - std::unique_ptr<ScFlatBoolRowSegments> mpHiddenRows; - std::unique_ptr<ScFlatBoolColSegments> mpFilteredCols; - std::unique_ptr<ScFlatBoolRowSegments> mpFilteredRows; + boost::scoped_ptr<ScFlatBoolColSegments> mpHiddenCols; + boost::scoped_ptr<ScFlatBoolRowSegments> mpHiddenRows; + boost::scoped_ptr<ScFlatBoolColSegments> mpFilteredCols; + boost::scoped_ptr<ScFlatBoolRowSegments> mpFilteredRows; ::std::set<SCROW> maRowPageBreaks; ::std::set<SCROW> maRowManualBreaks; @@ -188,7 +188,7 @@ private: ScDBData* pDBDataNoName; mutable ScRangeName* mpRangeName; - std::unique_ptr<ScConditionalFormatList> mpCondFormatList; + boost::scoped_ptr<ScConditionalFormatList> mpCondFormatList; bool bScenario:1; bool bLayoutRTL:1; diff --git a/sc/inc/tabprotection.hxx b/sc/inc/tabprotection.hxx index 07aecaa7dcad..1458399fd9c2 100644 --- a/sc/inc/tabprotection.hxx +++ b/sc/inc/tabprotection.hxx @@ -25,7 +25,7 @@ #include "global.hxx" #include "rangelst.hxx" -#include <memory> +#include <boost/scoped_ptr.hpp> class ScDocument; class ScTableProtectionImpl; @@ -103,7 +103,7 @@ public: void setOption(Option eOption, bool bEnabled); private: - std::unique_ptr<ScTableProtectionImpl> mpImpl; + ::boost::scoped_ptr<ScTableProtectionImpl> mpImpl; }; /** Container for the Excel EnhancedProtection feature. @@ -195,7 +195,7 @@ public: bool isSelectionEditable( const ScRangeList& rRangeList ) const; private: - std::unique_ptr<ScTableProtectionImpl> mpImpl; + ::boost::scoped_ptr<ScTableProtectionImpl> mpImpl; }; #endif |