diff options
Diffstat (limited to 'sc/source/filter/oox/pivottablebuffer.cxx')
-rw-r--r-- | sc/source/filter/oox/pivottablebuffer.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sc/source/filter/oox/pivottablebuffer.cxx b/sc/source/filter/oox/pivottablebuffer.cxx index 04b02687de07..4bed45cf4342 100644 --- a/sc/source/filter/oox/pivottablebuffer.cxx +++ b/sc/source/filter/oox/pivottablebuffer.cxx @@ -687,7 +687,7 @@ Reference< XDataPilotField > PivotTableField::convertRowColPageField( sal_Int32 else { const PivotCacheField* pCacheField = (maModel.mnSortRefField == OOX_PT_DATALAYOUTFIELD) ? - mrPivotTable.getCacheFieldOfDataField( maModel.mnSortRefItem ) : 0; + mrPivotTable.getCacheFieldOfDataField( maModel.mnSortRefItem ) : nullptr; if( pCacheField ) { aSortInfo.Mode = DataPilotFieldSortMode::DATA; @@ -902,9 +902,9 @@ PTLocationModel::PTLocationModel() : PivotTable::PivotTable( const WorkbookHelper& rHelper ) : WorkbookHelper( rHelper ), - mpDPObject(NULL), + mpDPObject(nullptr), maDataField( *this, OOX_PT_DATALAYOUTFIELD ), - mpPivotCache( 0 ) + mpPivotCache( nullptr ) { } @@ -1303,13 +1303,13 @@ Reference< XDataPilotField > PivotTable::getDataLayoutField() const const PivotCacheField* PivotTable::getCacheField( sal_Int32 nFieldIdx ) const { - return mpPivotCache ? mpPivotCache->getCacheField( nFieldIdx ) : 0; + return mpPivotCache ? mpPivotCache->getCacheField( nFieldIdx ) : nullptr; } const PivotCacheField* PivotTable::getCacheFieldOfDataField( sal_Int32 nDataItemIdx ) const { const PTDataFieldModel* pDataField = ContainerHelper::getVectorElement( maDataFields, nDataItemIdx ); - return pDataField ? getCacheField( pDataField->mnField ) : 0; + return pDataField ? getCacheField( pDataField->mnField ) : nullptr; } sal_Int32 PivotTable::getCacheDatabaseIndex( sal_Int32 nFieldIdx ) const |