summaryrefslogtreecommitdiff
path: root/tools/source/rc
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/source/rc
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/source/rc')
-rw-r--r--tools/source/rc/resmgr.cxx8
1 files changed, 2 insertions, 6 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 )