summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-07-01 09:59:26 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-07-01 10:56:14 +0100
commit5ace3f3b4f2f916d8b2acab1b5cc0fe2a5a19dee (patch)
tree00cdcfc6ef33bc558bda62935d46377f033975d6 /unotools
parent62cb50fd9b97358114dcc4d0c1afdcdd04341b0c (diff)
clang scan-build: various warnings
Change-Id: I4bdfb074b3cf6fcb49765322308dfa4b9ed67713
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/i18n/transliterationwrapper.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/unotools/source/i18n/transliterationwrapper.cxx b/unotools/source/i18n/transliterationwrapper.cxx
index ecaaf0c8196b..40eb5721bb71 100644
--- a/unotools/source/i18n/transliterationwrapper.cxx
+++ b/unotools/source/i18n/transliterationwrapper.cxx
@@ -214,7 +214,7 @@ sal_Int32 TransliterationWrapper::compareString( const OUString& rStr1, const OU
bool TransliterationWrapper::isEqual( const OUString& rStr1, const OUString& rStr2 ) const
{
- sal_Int32 nMatch1, nMatch2;
+ sal_Int32 nMatch1(0), nMatch2(0);
bool bMatch = equals(
rStr1, 0, rStr1.getLength(), nMatch1,
rStr2, 0, rStr2.getLength(), nMatch2 );
@@ -223,7 +223,7 @@ bool TransliterationWrapper::isEqual( const OUString& rStr1, const OUString& rSt
bool TransliterationWrapper::isMatch( const OUString& rStr1, const OUString& rStr2 ) const
{
- sal_Int32 nMatch1, nMatch2;
+ sal_Int32 nMatch1(0), nMatch2(0);
equals(
rStr1, 0, rStr1.getLength(), nMatch1,
rStr2, 0, rStr2.getLength(), nMatch2 );