cppcheck: the scope of these variables can be reduced
This commit is contained in:
parent
0fd0726c28
commit
4001266abd
1 changed files with 3 additions and 2 deletions
|
@ -3464,11 +3464,12 @@ ULONG WW8Export::ReplaceCr( BYTE nChar )
|
|||
bool bReplaced = false;
|
||||
SvStream& rStrm = Strm();
|
||||
ULONG nRetPos = 0, nPos = rStrm.Tell();
|
||||
BYTE nBCode=0;
|
||||
UINT16 nUCode=0;
|
||||
//If there is at least two characters already output
|
||||
if (nPos - (IsUnicode() ? 2 : 1) >= ULONG(pFib->fcMin))
|
||||
{
|
||||
BYTE nBCode=0;
|
||||
UINT16 nUCode=0;
|
||||
|
||||
rStrm.SeekRel(IsUnicode() ? -2 : -1);
|
||||
if (IsUnicode())
|
||||
rStrm >> nUCode;
|
||||
|
|
Loading…
Reference in a new issue