[PATCH 21/31] Replace ScfRef with boost in xipivot.hxx

Nigel Hawkins n.hawkins at gmx.com
Thu Nov 18 12:12:22 PST 2010


---
 sc/source/filter/inc/xipivot.hxx |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/sc/source/filter/inc/xipivot.hxx b/sc/source/filter/inc/xipivot.hxx
index be29646..9b26509 100644
--- a/sc/source/filter/inc/xipivot.hxx
+++ b/sc/source/filter/inc/xipivot.hxx
@@ -32,6 +32,7 @@
 #include <list>
 #include "xlpivot.hxx"
 #include "xiroot.hxx"
+#include <boost/shared_ptr.hpp>
 
 class ScDPSaveData;
 class ScDPSaveDimension;
@@ -66,7 +67,7 @@ private:
     void                ReadSxempty( XclImpStream& rStrm );
 };
 
-typedef ScfRef< XclImpPCItem > XclImpPCItemRef;
+typedef boost::shared_ptr< XclImpPCItem > XclImpPCItemRef;
 
 // ============================================================================
 
@@ -153,7 +154,7 @@ private:
     bool                mbNumGroupInfoRead; /// true = Numeric grouping info read (SXNUMGROUP record).
 };
 
-typedef ScfRef< XclImpPCField > XclImpPCFieldRef;
+typedef boost::shared_ptr< XclImpPCField > XclImpPCFieldRef;
 
 // ============================================================================
 
@@ -199,7 +200,7 @@ private:
     bool                mbSelfRef;          /// true = Source data from own document.
 };
 
-typedef ScfRef< XclImpPivotCache > XclImpPivotCacheRef;
+typedef boost::shared_ptr< XclImpPivotCache > XclImpPivotCacheRef;
 
 // ============================================================================
 // Pivot table
@@ -230,7 +231,7 @@ private:
     const XclImpPCField* mpCacheField;      /// Corresponding pivot cache field.
 };
 
-typedef ScfRef< XclImpPTItem > XclImpPTItemRef;
+typedef boost::shared_ptr< XclImpPTItem > XclImpPTItemRef;
 
 // ============================================================================
 
@@ -309,7 +310,7 @@ private:
     XclImpPTItemVec     maItems;            /// List of all items of this field.
 };
 
-typedef ScfRef< XclImpPTField > XclImpPTFieldRef;
+typedef boost::shared_ptr< XclImpPTField > XclImpPTFieldRef;
 
 // ============================================================================
 
@@ -385,7 +386,7 @@ private:
     ScDPObject*         mpDPObj;
 };
 
-typedef ScfRef< XclImpPivotTable > XclImpPivotTableRef;
+typedef boost::shared_ptr< XclImpPivotTable > XclImpPivotTableRef;
 
 // ============================================================================
 // ============================================================================
-- 
1.7.0.4


--=-qLwfU1BKYMIcJNs5pkFI
Content-Disposition: attachment; filename="0022-Replace-ScfRef-with-boost-in-xiroot.hxx.patch"
Content-Type: text/x-patch; name="0022-Replace-ScfRef-with-boost-in-xiroot.hxx.patch"; charset="UTF-8"
Content-Transfer-Encoding: 7bit



More information about the LibreOffice mailing list