diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-04-12 10:13:45 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-04-12 15:50:26 +0200 |
commit | 57aaf3022239699939c37bab9a4ec65a9a6d7fb7 (patch) | |
tree | 5b1a8773de12b89b3e873515ada8712521785ff9 /sw | |
parent | 1c2c47ca580eeb6b825c0ea8d929967a49a51bec (diff) |
Avoid reserved identifier
Change-Id: Ie3e28611003ae51ba4d0278cec41744f2ca08223
Diffstat (limited to 'sw')
-rw-r--r-- | sw/inc/ftnidx.hxx | 2 | ||||
-rw-r--r-- | sw/source/core/doc/docftn.cxx | 4 | ||||
-rw-r--r-- | sw/source/core/doc/ftnidx.cxx | 6 | ||||
-rw-r--r-- | sw/source/core/docnode/ndsect.cxx | 4 | ||||
-rw-r--r-- | sw/source/core/undo/rolbck.cxx | 2 |
5 files changed, 9 insertions, 9 deletions
diff --git a/sw/inc/ftnidx.hxx b/sw/inc/ftnidx.hxx index 62396a5f369f..41205a34b540 100644 --- a/sw/inc/ftnidx.hxx +++ b/sw/inc/ftnidx.hxx @@ -30,7 +30,7 @@ class SwSectionNode; // Everywhere where NodeIndex is used, the header files missing here // are already included. Therefore put here as defines only and // not as inline methods (saves compile time). -#define _SwTextFootnote_GetIndex( pFIdx ) (pFIdx->GetTextNode().GetIndex()) +#define SwTextFootnote_GetIndex( pFIdx ) (pFIdx->GetTextNode().GetIndex()) struct CompareSwFootnoteIdxs { diff --git a/sw/source/core/doc/docftn.cxx b/sw/source/core/doc/docftn.cxx index 5bec265ffe26..23a886b28247 100644 --- a/sw/source/core/doc/docftn.cxx +++ b/sw/source/core/doc/docftn.cxx @@ -417,7 +417,7 @@ bool SwDoc::SetCurFootnote( const SwPaM& rPam, const OUString& rNumStr, bool bTypeChgd = false; const size_t nPosSave = nPos; while( nPos < rFootnoteArr.size() && - (( nIdx = _SwTextFootnote_GetIndex((pTextFootnote = rFootnoteArr[ nPos++ ] ))) + (( nIdx = SwTextFootnote_GetIndex((pTextFootnote = rFootnoteArr[ nPos++ ] ))) < nEndNd || ( nIdx == nEndNd && nEndCnt >= pTextFootnote->GetStart() )) ) if( nIdx > nSttNd || ( nIdx == nSttNd && @@ -447,7 +447,7 @@ bool SwDoc::SetCurFootnote( const SwPaM& rPam, const OUString& rNumStr, nPos = nPosSave; // There are more in the front! while( nPos && - (( nIdx = _SwTextFootnote_GetIndex((pTextFootnote = rFootnoteArr[ --nPos ] ))) + (( nIdx = SwTextFootnote_GetIndex((pTextFootnote = rFootnoteArr[ --nPos ] ))) > nSttNd || ( nIdx == nSttNd && nSttCnt <= pTextFootnote->GetStart() )) ) if( nIdx < nEndNd || ( nIdx == nEndNd && diff --git a/sw/source/core/doc/ftnidx.cxx b/sw/source/core/doc/ftnidx.cxx index 4731017be4f8..d9bfbc238ad4 100644 --- a/sw/source/core/doc/ftnidx.cxx +++ b/sw/source/core/doc/ftnidx.cxx @@ -31,8 +31,8 @@ bool CompareSwFootnoteIdxs::operator()(SwTextFootnote* const& lhs, SwTextFootnote* const& rhs) const { - sal_uLong nIdxLHS = _SwTextFootnote_GetIndex( lhs ); - sal_uLong nIdxRHS = _SwTextFootnote_GetIndex( rhs ); + sal_uLong nIdxLHS = SwTextFootnote_GetIndex( lhs ); + sal_uLong nIdxRHS = SwTextFootnote_GetIndex( rhs ); return ( nIdxLHS == nIdxRHS && lhs->GetStart() < rhs->GetStart() ) || nIdxLHS < nIdxRHS; } @@ -256,7 +256,7 @@ SwTextFootnote* SwFootnoteIdxs::SeekEntry( const SwNodeIndex& rPos, size_t* pFnd while( nU <= nO ) { const size_t nM = nU + ( nO - nU ) / 2; - sal_uLong nNdIdx = _SwTextFootnote_GetIndex( (*this)[ nM ] ); + sal_uLong nNdIdx = SwTextFootnote_GetIndex( (*this)[ nM ] ); if( nNdIdx == nIdx ) { if( pFndPos ) diff --git a/sw/source/core/docnode/ndsect.cxx b/sw/source/core/docnode/ndsect.cxx index b65f244f20c0..8ad3ab124328 100644 --- a/sw/source/core/docnode/ndsect.cxx +++ b/sw/source/core/docnode/ndsect.cxx @@ -758,7 +758,7 @@ void sw_DeleteFootnote( SwSectionNode *pNd, sal_uLong nStt, sal_uLong nEnd ) // Delete all succeeding Footnotes while( nPos < rFootnoteArr.size() && - _SwTextFootnote_GetIndex( (pSrch = rFootnoteArr[ nPos ]) ) <= nEnd ) + SwTextFootnote_GetIndex( (pSrch = rFootnoteArr[ nPos ]) ) <= nEnd ) { // If the Nodes are not deleted, they need to deregister at the Pages // (delete Frames) or else they will remain there (Undo does not delete them!) @@ -767,7 +767,7 @@ void sw_DeleteFootnote( SwSectionNode *pNd, sal_uLong nStt, sal_uLong nEnd ) } while( nPos-- && - _SwTextFootnote_GetIndex( (pSrch = rFootnoteArr[ nPos ]) ) >= nStt ) + SwTextFootnote_GetIndex( (pSrch = rFootnoteArr[ nPos ]) ) >= nStt ) { // If the Nodes are not deleted, they need to deregister at the Pages // (delete Frames) or else they will remain there (Undo does not delete them!) diff --git a/sw/source/core/undo/rolbck.cxx b/sw/source/core/undo/rolbck.cxx index e340e027f3eb..effa11a12853 100644 --- a/sw/source/core/undo/rolbck.cxx +++ b/sw/source/core/undo/rolbck.cxx @@ -439,7 +439,7 @@ SwHistorySetFootnote::SwHistorySetFootnote( SwTextFootnote* pTextFootnote, sal_u SwHistorySetFootnote::SwHistorySetFootnote( const SwTextFootnote &rTextFootnote ) : SwHistoryHint( HSTRY_SETFTNHNT ) , m_FootnoteNumber( rTextFootnote.GetFootnote().GetNumStr() ) - , m_nNodeIndex( _SwTextFootnote_GetIndex( (&rTextFootnote) ) ) + , m_nNodeIndex( SwTextFootnote_GetIndex( (&rTextFootnote) ) ) , m_nStart( rTextFootnote.GetStart() ) , m_bEndNote( rTextFootnote.GetFootnote().IsEndNote() ) { |