summaryrefslogtreecommitdiff
path: root/sw/source/core/text/wrong.cxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2018-02-26 09:11:44 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2018-02-27 09:09:18 +0100
commit78233e47d07d89d656ef75b534272f71ea540572 (patch)
tree50d4b8e0fd18d184f71704b908812ac1a3da36d7 /sw/source/core/text/wrong.cxx
parent63a342ec65f702bfe27de0f0343f75198e6103dc (diff)
sw: prefix members of SwScriptField, SwTemplNameField and SwWrongList
Change-Id: Ia82df7c6c8260c90f76d77355b70b8589978b9c2 Reviewed-on: https://gerrit.libreoffice.org/50341 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'sw/source/core/text/wrong.cxx')
-rw-r--r--sw/source/core/text/wrong.cxx36
1 files changed, 18 insertions, 18 deletions
diff --git a/sw/source/core/text/wrong.cxx b/sw/source/core/text/wrong.cxx
index 3968bce1c1e5..20fdac821985 100644
--- a/sw/source/core/text/wrong.cxx
+++ b/sw/source/core/text/wrong.cxx
@@ -48,8 +48,8 @@ SwWrongArea::SwWrongArea( const OUString& rType,
SwWrongList::SwWrongList( WrongListType eType ) :
meType (eType),
- nBeginInvalid(COMPLETE_STRING), // everything correct... (the invalid area starts beyond the string)
- nEndInvalid (COMPLETE_STRING)
+ mnBeginInvalid(COMPLETE_STRING), // everything correct... (the invalid area starts beyond the string)
+ mnEndInvalid (COMPLETE_STRING)
{
maList.reserve( 5 );
}
@@ -70,8 +70,8 @@ void SwWrongList::CopyFrom( const SwWrongList& rCopy )
{
maList = rCopy.maList;
meType = rCopy.meType;
- nBeginInvalid = rCopy.nBeginInvalid;
- nEndInvalid = rCopy.nEndInvalid;
+ mnBeginInvalid = rCopy.mnBeginInvalid;
+ mnEndInvalid = rCopy.mnEndInvalid;
for(SwWrongArea & i : maList)
{
if( i.mpSubList )
@@ -248,15 +248,15 @@ sal_uInt16 SwWrongList::GetWrongPos( sal_Int32 nValue ) const
void SwWrongList::Invalidate_( sal_Int32 nBegin, sal_Int32 nEnd )
{
if ( nBegin < GetBeginInv() )
- nBeginInvalid = nBegin;
+ mnBeginInvalid = nBegin;
if ( nEnd > GetEndInv() || GetEndInv() == COMPLETE_STRING )
- nEndInvalid = nEnd;
+ mnEndInvalid = nEnd;
}
void SwWrongList::SetInvalid( sal_Int32 nBegin, sal_Int32 nEnd )
{
- nBeginInvalid = nBegin;
- nEndInvalid = nEnd;
+ mnBeginInvalid = nBegin;
+ mnEndInvalid = nEnd;
}
/** Change all values after the given position.
@@ -301,9 +301,9 @@ void SwWrongList::Move( sal_Int32 nPos, sal_Int32 nDiff )
SetInvalid( nPos ? nPos - 1 : nPos, nPos + 1 );
else
{
- ShiftLeft( nBeginInvalid, nPos, nEnd );
- if( nEndInvalid != COMPLETE_STRING )
- ShiftLeft( nEndInvalid, nPos, nEnd );
+ ShiftLeft( mnBeginInvalid, nPos, nEnd );
+ if( mnEndInvalid != COMPLETE_STRING )
+ ShiftLeft( mnEndInvalid, nPos, nEnd );
Invalidate_( nPos ? nPos - 1 : nPos, nPos + 1 );
}
}
@@ -312,10 +312,10 @@ void SwWrongList::Move( sal_Int32 nPos, sal_Int32 nDiff )
const sal_Int32 nEnd = nPos + nDiff;
if( COMPLETE_STRING != GetBeginInv() )
{
- if( nBeginInvalid > nPos )
- nBeginInvalid += nDiff;
- if( nEndInvalid >= nPos && nEndInvalid != COMPLETE_STRING )
- nEndInvalid += nDiff;
+ if( mnBeginInvalid > nPos )
+ mnBeginInvalid += nDiff;
+ if( mnEndInvalid >= nPos && mnEndInvalid != COMPLETE_STRING )
+ mnEndInvalid += nDiff;
}
// If the pointer is in the middle of a wrong word,
// invalidation must happen from the beginning of that word.
@@ -477,9 +477,9 @@ SwWrongList* SwWrongList::SplitList( sal_Int32 nSplitPos )
SetInvalid( 0, 1 );
else
{
- ShiftLeft( nBeginInvalid, 0, nSplitPos );
- if( nEndInvalid != COMPLETE_STRING )
- ShiftLeft( nEndInvalid, 0, nSplitPos );
+ ShiftLeft( mnBeginInvalid, 0, nSplitPos );
+ if( mnEndInvalid != COMPLETE_STRING )
+ ShiftLeft( mnEndInvalid, 0, nSplitPos );
Invalidate_( 0, 1 );
}
for (nLst = 0; nLst < Count(); ++nLst )