From 5ace3f3b4f2f916d8b2acab1b5cc0fe2a5a19dee Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 1 Jul 2014 09:59:26 +0100 Subject: clang scan-build: various warnings Change-Id: I4bdfb074b3cf6fcb49765322308dfa4b9ed67713 --- unotools/source/i18n/transliterationwrapper.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'unotools') 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 ); -- cgit