summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorBenjamin Ni <benjaminniri@hotmail.com>2015-09-25 11:41:53 +0100
committerMichael Stahl <mstahl@redhat.com>2015-11-02 23:40:57 +0100
commitbe729e772196f33543e21cb9bac21add87726b20 (patch)
treef2150f458e2b07f8924b4702d37c09c8dd52215a /editeng
parent6ccf68622e51c1b727dd042c1c1a71b5d1fd6a12 (diff)
tdf#94269: Replace "n" prefix for bool variables with "b"
Change-Id: I178545792c7354a362658ac7ef8b1d4cf0865797 Signed-off-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/misc/svxacorr.cxx26
1 files changed, 13 insertions, 13 deletions
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx
index 84a0df110e5d..113d67ef3ca6 100644
--- a/editeng/source/misc/svxacorr.cxx
+++ b/editeng/source/misc/svxacorr.cxx
@@ -458,25 +458,25 @@ bool SvxAutoCorrect::FnChgOrdinalNumber(
// Get the last number in the string to check
sal_Int32 nNumEnd = nEndPos;
- bool foundEnd = false;
- bool validNumber = true;
+ bool bFoundEnd = false;
+ bool isValidNumber = true;
sal_Int32 i = nEndPos;
while (i > nSttPos)
{
i--;
bool isDigit = rCC.isDigit(rTxt, i);
- if (foundEnd)
- validNumber |= isDigit;
+ if (bFoundEnd)
+ isValidNumber |= isDigit;
- if (isDigit && !foundEnd)
+ if (isDigit && !bFoundEnd)
{
- foundEnd = true;
+ bFoundEnd = true;
nNumEnd = i;
}
}
- if (foundEnd && validNumber) {
+ if (bFoundEnd && isValidNumber) {
sal_Int32 nNum = rTxt.copy(nSttPos, nNumEnd - nSttPos + 1).toInt32();
// Check if the characters after that number correspond to the ordinal suffix
@@ -2160,7 +2160,7 @@ SvStringsISortDtor* SvxAutoCorrectLanguageLists::GetCplSttExceptList()
bool SvxAutoCorrectLanguageLists::AddToCplSttExceptList(const OUString& rNew)
{
- bool aRet = false;
+ bool bRet = false;
if( !rNew.isEmpty() && GetCplSttExceptList()->insert( rNew ).second )
{
MakeUserStorage_Impl();
@@ -2173,14 +2173,14 @@ bool SvxAutoCorrectLanguageLists::AddToCplSttExceptList(const OUString& rNew)
FStatHelper::GetModifiedDateTimeOfFile( sUserAutoCorrFile,
&aModifiedDate, &aModifiedTime );
aLastCheckTime = tools::Time( tools::Time::SYSTEM );
- aRet = true;
+ bRet = true;
}
- return aRet;
+ return bRet;
}
bool SvxAutoCorrectLanguageLists::AddToWrdSttExceptList(const OUString& rNew)
{
- bool aRet = false;
+ bool bRet = false;
SvStringsISortDtor* pExceptList = LoadWrdSttExceptList();
if( !rNew.isEmpty() && pExceptList && pExceptList->insert( rNew ).second )
{
@@ -2194,9 +2194,9 @@ bool SvxAutoCorrectLanguageLists::AddToWrdSttExceptList(const OUString& rNew)
FStatHelper::GetModifiedDateTimeOfFile( sUserAutoCorrFile,
&aModifiedDate, &aModifiedTime );
aLastCheckTime = tools::Time( tools::Time::SYSTEM );
- aRet = true;
+ bRet = true;
}
- return aRet;
+ return bRet;
}
SvStringsISortDtor* SvxAutoCorrectLanguageLists::LoadCplSttExceptList()