summaryrefslogtreecommitdiff
path: root/editeng/source/misc/svxacorr.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'editeng/source/misc/svxacorr.cxx')
-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()