summaryrefslogtreecommitdiff
path: root/sal/rtl/ustring.cxx
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2014-12-19 11:07:02 +0100
committerNoel Grandin <noelgrandin@gmail.com>2014-12-19 13:51:34 +0000
commit2ee336fb556ceb1d7e1ee8017c27539da7fe543b (patch)
tree7332ba839b28f112397104596a601c3506bd5973 /sal/rtl/ustring.cxx
parent5712983f18e7cdec16ea20a9b3d94a1586de543e (diff)
fdo#39440 sal: reduce scope of local variables
This addresses some cppcheck warnings. Change-Id: Id5f90757571e76a2c05a4cbd37020e1f6a6b2033 Reviewed-on: https://gerrit.libreoffice.org/13544 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sal/rtl/ustring.cxx')
-rw-r--r--sal/rtl/ustring.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sal/rtl/ustring.cxx b/sal/rtl/ustring.cxx
index 5f1c12a02061..b3eeac13226c 100644
--- a/sal/rtl/ustring.cxx
+++ b/sal/rtl/ustring.cxx
@@ -569,7 +569,6 @@ void SAL_CALL rtl_uString_newFromCodePoints(
static int rtl_ImplGetFastUTF8UnicodeLen( const sal_Char* pStr, sal_Int32 nLen, bool * ascii )
{
int n;
- unsigned char c;
const sal_Char* pEndStr;
*ascii = true;
@@ -577,7 +576,7 @@ static int rtl_ImplGetFastUTF8UnicodeLen( const sal_Char* pStr, sal_Int32 nLen,
pEndStr = pStr+nLen;
while ( pStr < pEndStr )
{
- c = (unsigned char)*pStr;
+ unsigned char c = (unsigned char)*pStr;
if ( !(c & 0x80) )
pStr++;