diff options
author | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-02-09 14:28:35 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@suse.com> | 2012-02-09 15:25:08 -0500 |
commit | 0ee411e6870f73ad6000ebb2502c777cabe30bea (patch) | |
tree | 65bfa19b2bc539b2a066abaefc5b5d7581adc311 /sc/source | |
parent | 2f14dc8754302f72addeb6797246d55b59fb9f4e (diff) |
More duplicated defines.
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/core/data/dpobject.cxx | 4 | ||||
-rw-r--r-- | sc/source/core/data/dptabres.cxx | 26 | ||||
-rw-r--r-- | sc/source/core/data/dptabsrc.cxx | 4 | ||||
-rw-r--r-- | sc/source/ui/dbgui/pvlaydlg.cxx | 4 |
4 files changed, 19 insertions, 19 deletions
diff --git a/sc/source/core/data/dpobject.cxx b/sc/source/core/data/dpobject.cxx index a09e5ee98838..d675bc898d2a 100644 --- a/sc/source/core/data/dpobject.cxx +++ b/sc/source/core/data/dpobject.cxx @@ -1980,8 +1980,8 @@ bool ScDPObject::FillLabelData(ScPivotParam& rParam) uno::Reference<container::XNameAccess> xDimsName = xSource->getDimensions(); uno::Reference<container::XIndexAccess> xDims = new ScNameToIndexAccess( xDimsName ); long nDimCount = xDims->getCount(); - if ( nDimCount > MAX_LABELS ) - nDimCount = MAX_LABELS; + if ( nDimCount > SC_DP_MAX_FIELDS ) + nDimCount = SC_DP_MAX_FIELDS; if (!nDimCount) return false; diff --git a/sc/source/core/data/dptabres.cxx b/sc/source/core/data/dptabres.cxx index 3d502455e80f..114aa1512109 100644 --- a/sc/source/core/data/dptabres.cxx +++ b/sc/source/core/data/dptabres.cxx @@ -254,8 +254,8 @@ sal_Bool ScDPColMembersOrder::operator()( sal_Int32 nIndex1, sal_Int32 nIndex2 ) ScDPInitState::ScDPInitState() : nCount( 0 ) { - pIndex = new long[SC_DAPI_MAXFIELDS]; - pData = new SCROW[SC_DAPI_MAXFIELDS]; + pIndex = new long[SC_DP_MAX_FIELDS]; + pData = new SCROW[SC_DP_MAX_FIELDS]; } ScDPInitState::~ScDPInitState() @@ -266,8 +266,8 @@ ScDPInitState::~ScDPInitState() void ScDPInitState::AddMember( long nSourceIndex, SCROW nMember ) { - OSL_ENSURE( nCount < SC_DAPI_MAXFIELDS, "too many InitState members" ); - if ( nCount < SC_DAPI_MAXFIELDS ) + OSL_ENSURE( nCount < SC_DP_MAX_FIELDS, "too many InitState members" ); + if ( nCount < SC_DP_MAX_FIELDS ) { pIndex[nCount] = nSourceIndex; pData[nCount] = nMember; @@ -334,10 +334,10 @@ ScDPRunningTotalState::ScDPRunningTotalState( ScDPResultMember* pColRoot, ScDPRe nColIndexPos( 0 ), nRowIndexPos( 0 ) { - pColVisible = new long[SC_DAPI_MAXFIELDS+1]; - pColIndexes = new long[SC_DAPI_MAXFIELDS+1]; - pRowVisible = new long[SC_DAPI_MAXFIELDS+1]; - pRowIndexes = new long[SC_DAPI_MAXFIELDS+1]; + pColVisible = new long[SC_DP_MAX_FIELDS+1]; + pColIndexes = new long[SC_DP_MAX_FIELDS+1]; + pRowVisible = new long[SC_DP_MAX_FIELDS+1]; + pRowIndexes = new long[SC_DP_MAX_FIELDS+1]; pColIndexes[0] = -1; pRowIndexes[0] = -1; } @@ -352,8 +352,8 @@ ScDPRunningTotalState::~ScDPRunningTotalState() void ScDPRunningTotalState::AddColIndex( long nVisible, long nSorted ) { - OSL_ENSURE( nColIndexPos < SC_DAPI_MAXFIELDS, "too many column indexes" ); - if ( nColIndexPos < SC_DAPI_MAXFIELDS ) + OSL_ENSURE( nColIndexPos < SC_DP_MAX_FIELDS, "too many column indexes" ); + if ( nColIndexPos < SC_DP_MAX_FIELDS ) { pColVisible[nColIndexPos] = nVisible; pColIndexes[nColIndexPos] = nSorted; @@ -365,8 +365,8 @@ void ScDPRunningTotalState::AddColIndex( long nVisible, long nSorted ) void ScDPRunningTotalState::AddRowIndex( long nVisible, long nSorted ) { - OSL_ENSURE( nRowIndexPos < SC_DAPI_MAXFIELDS, "too many row indexes" ); - if ( nRowIndexPos < SC_DAPI_MAXFIELDS ) + OSL_ENSURE( nRowIndexPos < SC_DP_MAX_FIELDS, "too many row indexes" ); + if ( nRowIndexPos < SC_DP_MAX_FIELDS ) { pRowVisible[nRowIndexPos] = nVisible; pRowIndexes[nRowIndexPos] = nSorted; @@ -767,7 +767,7 @@ ScDPResultData::ScDPResultData( ScDPSource* pSrc ) : //! Ref bDataAtRow( false ) { - lcl_ResizePointVector( mpDimMembers , SC_DAPI_MAXFIELDS ); + lcl_ResizePointVector( mpDimMembers , SC_DP_MAX_FIELDS ); } ScDPResultData::~ScDPResultData() diff --git a/sc/source/core/data/dptabsrc.cxx b/sc/source/core/data/dptabsrc.cxx index 6764d2d772ad..199e457dea61 100644 --- a/sc/source/core/data/dptabsrc.cxx +++ b/sc/source/core/data/dptabsrc.cxx @@ -808,8 +808,8 @@ void ScDPSource::CreateRes_Impl() // or pointer arrays. vector<rtl::OUString> aDataNames; sheet::DataPilotFieldReference* pDataRefValues = NULL; - ScSubTotalFunc eDataFunctions[SC_DAPI_MAXFIELDS]; - sal_uInt16 nDataRefOrient[SC_DAPI_MAXFIELDS]; + ScSubTotalFunc eDataFunctions[SC_DP_MAX_FIELDS]; + sal_uInt16 nDataRefOrient[SC_DP_MAX_FIELDS]; if (nDataDimCount) { aDataNames.resize(nDataDimCount); diff --git a/sc/source/ui/dbgui/pvlaydlg.cxx b/sc/source/ui/dbgui/pvlaydlg.cxx index 961b979d81a5..8b83f6b06834 100644 --- a/sc/source/ui/dbgui/pvlaydlg.cxx +++ b/sc/source/ui/dbgui/pvlaydlg.cxx @@ -347,8 +347,8 @@ void ScDPLayoutDlg::StateChanged( StateChangedType nStateChange ) void ScDPLayoutDlg::InitWndSelect( const vector<ScDPLabelDataRef>& rLabels ) { size_t nLabelCount = rLabels.size(); - if (nLabelCount > MAX_LABELS) - nLabelCount = MAX_LABELS; + if (nLabelCount > SC_DP_MAX_FIELDS) + nLabelCount = SC_DP_MAX_FIELDS; aLabelDataArr.clear(); aLabelDataArr.reserve( nLabelCount ); |