summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-11-21 10:59:56 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-11-22 05:39:20 +0100
commitc91ec113a24ecc2bf883b1620f4e900f713dc996 (patch)
tree7419467ab3b34b77abb956fc1d8afe5d2595d154 /scripting
parent2e7f77d3fe01e36222d5ad84c18d7d7537092972 (diff)
loplugin:unusedfields
Change-Id: I4a7276ffc36b4f954fe1fa39fb5666fa184e66e1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143016 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'scripting')
-rw-r--r--scripting/source/stringresource/stringresource.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/scripting/source/stringresource/stringresource.cxx b/scripting/source/stringresource/stringresource.cxx
index b99a512d1168..e1fc4729176c 100644
--- a/scripting/source/stringresource/stringresource.cxx
+++ b/scripting/source/stringresource/stringresource.cxx
@@ -1246,14 +1246,13 @@ namespace {
class BinaryInput
{
Sequence< sal_Int8 > m_aData;
- Reference< XComponentContext > m_xContext;
const sal_Int8* m_pData;
sal_Int32 m_nCurPos;
sal_Int32 m_nSize;
public:
- BinaryInput( const Sequence< ::sal_Int8 >& aData, Reference< XComponentContext > const & xContext );
+ BinaryInput( const Sequence< ::sal_Int8 >& aData );
Reference< io::XInputStream > getInputStreamForSection( sal_Int32 nSize );
@@ -1269,9 +1268,8 @@ public:
}
-BinaryInput::BinaryInput( const Sequence< ::sal_Int8 >& aData, Reference< XComponentContext > const & xContext )
+BinaryInput::BinaryInput( const Sequence< ::sal_Int8 >& aData )
: m_aData( aData )
- , m_xContext( xContext )
{
m_pData = m_aData.getConstArray();
m_nCurPos = 0;
@@ -1384,7 +1382,7 @@ void StringResourcePersistenceImpl::importBinary( const Sequence< ::sal_Int8 >&
while( nOldLocaleCount > 0 );
// Import data
- BinaryInput aIn( Data, m_xContext );
+ BinaryInput aIn( Data );
aIn.readInt16(); // version
sal_Int32 nLocaleCount = aIn.readInt16();