diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2015-10-12 21:44:46 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-10-13 06:22:33 +0000 |
commit | ed7361ef0bdb6bee4f47a8421221eb7824f02e38 (patch) | |
tree | b745a27d916bb923f01857148e16485ac319f288 /svtools/source/svrtf | |
parent | 239c75ed63fb31cfef9cee13d8d58c4fe9e7a906 (diff) |
cppcheck:variableScope
Change-Id: I7cbd5a9e9bb5417f754d4e2445df309140fd40af
Reviewed-on: https://gerrit.libreoffice.org/19329
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svtools/source/svrtf')
-rw-r--r-- | svtools/source/svrtf/svparser.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/svtools/source/svrtf/svparser.cxx b/svtools/source/svrtf/svparser.cxx index 241688d79828..6aa1e30224dc 100644 --- a/svtools/source/svrtf/svparser.cxx +++ b/svtools/source/svrtf/svparser.cxx @@ -159,7 +159,7 @@ sal_Unicode SvParser::GetNextChar() bool bErr; if( bSwitchToUCS2 && 0 == rInput.Tell() ) { - unsigned char c1, c2; + unsigned char c1; bool bSeekBack = true; rInput.ReadUChar( c1 ); @@ -168,6 +168,7 @@ sal_Unicode SvParser::GetNextChar() { if( 0xff == c1 || 0xfe == c1 ) { + unsigned char c2; rInput.ReadUChar( c2 ); bErr = rInput.IsEof() || rInput.GetError(); if( !bErr ) @@ -188,6 +189,7 @@ sal_Unicode SvParser::GetNextChar() } else if( 0xef == c1 || 0xbb == c1 ) // check for UTF-8 BOM { + unsigned char c2; rInput.ReadUChar( c2 ); bErr = rInput.IsEof() || rInput.GetError(); if( !bErr ) |