Kaydet (Commit) 205f8574 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Reduce variable scope

Change-Id: I6a8e4b8f132acff5d75859de570a969ad8c3fa4b
üst 4d00131b
...@@ -723,7 +723,7 @@ bool SvxAutoCorrect::FnChgWeightUnderl( SvxAutoCorrDoc& rDoc, const OUString& rT ...@@ -723,7 +723,7 @@ bool SvxAutoCorrect::FnChgWeightUnderl( SvxAutoCorrDoc& rDoc, const OUString& rT
// at the beginning: _ or * after Space with the folloeing !Space // at the beginning: _ or * after Space with the folloeing !Space
// at the end: _ or * before Space (word delimiter?) // 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() && if( ++nEndPos != rTxt.getLength() &&
!IsWordDelim( rTxt[ nEndPos ] ) ) !IsWordDelim( rTxt[ nEndPos ] ) )
return false; return false;
...@@ -737,7 +737,7 @@ bool SvxAutoCorrect::FnChgWeightUnderl( SvxAutoCorrDoc& rDoc, const OUString& rT ...@@ -737,7 +737,7 @@ bool SvxAutoCorrect::FnChgWeightUnderl( SvxAutoCorrDoc& rDoc, const OUString& rT
while( nPos ) while( nPos )
{ {
switch( c = rTxt[ --nPos ] ) switch( sal_Unicode c = rTxt[ --nPos ] )
{ {
case '_': case '_':
case '*': case '*':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment