summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-10-07 10:15:29 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-10-07 11:32:43 +0200
commit205f85749d4245ddb80657829af74fc1de23622c (patch)
tree69101f09595bae70e061c43f943091846ad7820c /editeng
parent4d00131b677da3afd1779777dabb275c276221c8 (diff)
Reduce variable scope
Change-Id: I6a8e4b8f132acff5d75859de570a969ad8c3fa4b
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/misc/svxacorr.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx
index 912968a96e68..d032d4c90a53 100644
--- a/editeng/source/misc/svxacorr.cxx
+++ b/editeng/source/misc/svxacorr.cxx
@@ -723,7 +723,7 @@ bool SvxAutoCorrect::FnChgWeightUnderl( SvxAutoCorrDoc& rDoc, const OUString& rT
// at the beginning: _ or * after Space with the folloeing !Space
// at the end: _ or * before Space (word delimiter?)
- sal_Unicode c, cInsChar = rTxt[ nEndPos ]; // underline or bold
+ sal_Unicode cInsChar = rTxt[ nEndPos ]; // underline or bold
if( ++nEndPos != rTxt.getLength() &&
!IsWordDelim( rTxt[ nEndPos ] ) )
return false;
@@ -737,7 +737,7 @@ bool SvxAutoCorrect::FnChgWeightUnderl( SvxAutoCorrDoc& rDoc, const OUString& rT
while( nPos )
{
- switch( c = rTxt[ --nPos ] )
+ switch( sal_Unicode c = rTxt[ --nPos ] )
{
case '_':
case '*':