summaryrefslogtreecommitdiff
path: root/scripting/source/stringresource/stringresource.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-07-02 22:30:49 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-07-02 22:30:49 +0200
commitf6abc3f97e74df0c4ae05abf4075085a9b9c1cc4 (patch)
tree996a26c5406ec43bb51039d4790080b16cefba7a /scripting/source/stringresource/stringresource.cxx
parent619c9b494a76b0fb8b0cf6c9b7622f17cf1d5b6c (diff)
loplugin:casttovoid: scripting
Change-Id: I9f77eca5a80ad4e9d3cee8f7400a245f5fa78bbb
Diffstat (limited to 'scripting/source/stringresource/stringresource.cxx')
-rw-r--r--scripting/source/stringresource/stringresource.cxx11
1 files changed, 2 insertions, 9 deletions
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<sal_Int32[]> 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();