From f6abc3f97e74df0c4ae05abf4075085a9b9c1cc4 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Sun, 2 Jul 2017 22:30:49 +0200 Subject: loplugin:casttovoid: scripting Change-Id: I9f77eca5a80ad4e9d3cee8f7400a245f5fa78bbb --- scripting/source/stringresource/stringresource.cxx | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'scripting/source/stringresource/stringresource.cxx') diff --git a/scripting/source/stringresource/stringresource.cxx b/scripting/source/stringresource/stringresource.cxx index 41579a1cded1..e5eea6885cd7 100644 --- a/scripting/source/stringresource/stringresource.cxx +++ b/scripting/source/stringresource/stringresource.cxx @@ -685,10 +685,9 @@ void StringResourceImpl::implNotifyListeners() // Loading -bool StringResourceImpl::loadLocale( LocaleItem* pLocaleItem ) +bool StringResourceImpl::loadLocale( LocaleItem* ) { // Base implementation has nothing to load - (void)pLocaleItem; return true; } @@ -1239,7 +1238,6 @@ Sequence< ::sal_Int8 > BinaryOutput::closeAndGetData() xSeekable->seek( 0 ); sal_Int32 nRead = xInputStream->readBytes( aRetSeq, nSize ); - (void)nRead; OSL_ENSURE( nRead == nSize, "BinaryOutput::closeAndGetData: nRead != nSize" ); return aRetSeq; @@ -1497,11 +1495,9 @@ void StringResourcePersistenceImpl::importBinary( const Sequence< ::sal_Int8 >& // Import data BinaryInput aIn( Data, m_xContext ); - sal_Int32 nVersion = aIn.readInt16(); - (void)nVersion; + aIn.readInt16(); // version sal_Int32 nLocaleCount = aIn.readInt16(); sal_Int32 iDefault = aIn.readInt16(); - (void)iDefault; std::unique_ptr pPositions( new sal_Int32[nLocaleCount + 1] ); for( sal_Int32 i = 0; i < nLocaleCount + 1; i++ ) @@ -2038,9 +2034,6 @@ void implWriteStringWithEncoding( const OUString& aStr, { static sal_Unicode cLineFeed = 0xa; - (void)aStr; - (void)xTextOutputStream; - OUStringBuffer aBuf; sal_Int32 nLen = aStr.getLength(); const sal_Unicode* pSrc = aStr.getStr(); -- cgit v1.2.3