From be729e772196f33543e21cb9bac21add87726b20 Mon Sep 17 00:00:00 2001 From: Benjamin Ni Date: Fri, 25 Sep 2015 11:41:53 +0100 Subject: tdf#94269: Replace "n" prefix for bool variables with "b" Change-Id: I178545792c7354a362658ac7ef8b1d4cf0865797 Signed-off-by: Michael Stahl --- editeng/source/misc/svxacorr.cxx | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'editeng') 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() -- cgit