summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-15 16:02:03 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-16 08:26:04 +0200
commita975624bfeeb08670b90944eda372d6d4755ae34 (patch)
treeca4a79214d2f8004aa68d98e1761ff52dc2ba79d /tools
parent83f9325f0d8d643d8b3e71fa3ff76ebbd599373d (diff)
loplugin:unusedfields in tools..vbahelper
Change-Id: Ief7d4c8e1866604eda6308ea2a5c1ce4b1c093bc Reviewed-on: https://gerrit.libreoffice.org/38836 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'tools')
-rw-r--r--tools/source/rc/resmgr.cxx8
-rw-r--r--tools/source/stream/strmunx.cxx2
2 files changed, 2 insertions, 8 deletions
diff --git a/tools/source/rc/resmgr.cxx b/tools/source/rc/resmgr.cxx
index 3d3d2dd89048..3e808571923e 100644
--- a/tools/source/rc/resmgr.cxx
+++ b/tools/source/rc/resmgr.cxx
@@ -725,15 +725,13 @@ static void RscException_Impl()
}
}
-void ImpRCStack::Init( ResMgr* pMgr, const Resource* pObj, sal_uInt32 Id )
+void ImpRCStack::Init( const Resource* pObj, sal_uInt32 Id )
{
pResource = nullptr;
pClassRes = nullptr;
Flags = RCFlags::NONE;
aResHandle = nullptr;
pResObj = pObj;
- nId = Id & ~RSC_DONTRELEASE; //TLX: Besser Init aendern
- pResMgr = pMgr;
if ( !(Id & RSC_DONTRELEASE) )
Flags |= RCFlags::AUTORELEASE;
}
@@ -745,8 +743,6 @@ void ImpRCStack::Clear()
Flags = RCFlags::NONE;
aResHandle = nullptr;
pResObj = nullptr;
- nId = 0;
- pResMgr = nullptr;
}
static RSHEADER_TYPE* LocalResource( const ImpRCStack* pStack,
@@ -966,7 +962,7 @@ bool ResMgr::GetResource( const ResId& rId, const Resource* pResObj )
incStack();
pTop = &aStack[nCurStack];
- pTop->Init( pMgr, pResObj, nId |
+ pTop->Init( pResObj, nId |
(rId.IsAutoRelease() ? 0 : RSC_DONTRELEASE) );
if ( pClassRes )
diff --git a/tools/source/stream/strmunx.cxx b/tools/source/stream/strmunx.cxx
index 46d0bb79c9dc..bb5d3de9fff7 100644
--- a/tools/source/stream/strmunx.cxx
+++ b/tools/source/stream/strmunx.cxx
@@ -272,7 +272,6 @@ static sal_uInt32 GetSvError( oslFileError nErrno )
SvFileStream::SvFileStream( const OUString& rFileName, StreamMode nOpenMode )
{
bIsOpen = false;
- nLockCounter = 0;
m_isWritable = false;
pInstanceData = new StreamData;
@@ -290,7 +289,6 @@ SvFileStream::SvFileStream( const OUString& rFileName, StreamMode nOpenMode )
SvFileStream::SvFileStream()
{
bIsOpen = false;
- nLockCounter = 0;
m_isWritable = false;
pInstanceData = new StreamData;
SetBufferSize( 1024 );