summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-03-08 09:04:18 +0200
committerNoel Grandin <noel@peralex.com>2016-03-08 09:04:47 +0200
commitb4fda7b3f9cf928f45baf6846dd70e97cdb9904a (patch)
tree9158f4d04ed9c144fbe32d4af73939df56b76179 /xmlsecurity
parentc0bd26d73d438b6efc14b56231a6e7f05c8e4b92 (diff)
new loplugin:constantparam
finds parameters that are only ever being called with a single value Change-Id: Ibd0c9b6e6dbc1d1b5d5a005eaa19959560a6e50f
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/source/framework/saxeventkeeperimpl.cxx15
-rw-r--r--xmlsecurity/source/framework/saxeventkeeperimpl.hxx3
2 files changed, 5 insertions, 13 deletions
diff --git a/xmlsecurity/source/framework/saxeventkeeperimpl.cxx b/xmlsecurity/source/framework/saxeventkeeperimpl.cxx
index 036b541fe425..492e23ef4783 100644
--- a/xmlsecurity/source/framework/saxeventkeeperimpl.cxx
+++ b/xmlsecurity/source/framework/saxeventkeeperimpl.cxx
@@ -855,7 +855,6 @@ void SAXEventKeeperImpl::markElementMarkBuffer(sal_Int32 nId)
}
sal_Int32 SAXEventKeeperImpl::createElementCollector(
- sal_Int32 nSecurityId,
cssxc::sax::ElementMarkPriority nPriority,
bool bModifyElement,
const cssu::Reference< cssxc::sax::XReferenceResolvedListener >& xReferenceResolvedListener)
@@ -875,7 +874,6 @@ sal_Int32 SAXEventKeeperImpl::createElementCollector(
* Add the new created ElementCollector to the new ElementCollecotor list.
*
* INPUTS
- * nSecurityId - the security Id of the new ElementCollector
* nPriority - the priority of the new ElementCollector
* bModifyElement -whether this BufferNode will modify the content of
* the corresponding element it works on
@@ -894,7 +892,7 @@ sal_Int32 SAXEventKeeperImpl::createElementCollector(
ElementCollector* pElementCollector
= new ElementCollector(
- nSecurityId,
+ cssxc::sax::ConstOfSecurityId::UNDEFINEDSECURITYID,
nId,
nPriority,
bModifyElement,
@@ -911,7 +909,7 @@ sal_Int32 SAXEventKeeperImpl::createElementCollector(
}
-sal_Int32 SAXEventKeeperImpl::createBlocker(sal_Int32 nSecurityId)
+sal_Int32 SAXEventKeeperImpl::createBlocker()
/****** SAXEventKeeperImpl/createBlocker *************************************
*
* NAME
@@ -923,9 +921,6 @@ sal_Int32 SAXEventKeeperImpl::createBlocker(sal_Int32 nSecurityId)
* FUNCTION
* see NAME.
*
- * INPUTS
- * nSecurityId - the security Id of the new Blocker
- *
* RESULT
* nId - the Id of the new Blocker
*
@@ -939,7 +934,7 @@ sal_Int32 SAXEventKeeperImpl::createBlocker(sal_Int32 nSecurityId)
OSL_ASSERT(m_pNewBlocker == nullptr);
- m_pNewBlocker = new ElementMark(nSecurityId, nId);
+ m_pNewBlocker = new ElementMark(cssxc::sax::ConstOfSecurityId::UNDEFINEDSECURITYID, nId);
m_vElementMarkBuffers.push_back( m_pNewBlocker );
return nId;
@@ -950,7 +945,6 @@ sal_Int32 SAL_CALL SAXEventKeeperImpl::addElementCollector( )
throw (cssu::RuntimeException, std::exception)
{
return createElementCollector(
- cssxc::sax::ConstOfSecurityId::UNDEFINEDSECURITYID,
cssxc::sax::ElementMarkPriority_AFTERMODIFY,
false,
nullptr);
@@ -965,7 +959,7 @@ void SAL_CALL SAXEventKeeperImpl::removeElementCollector( sal_Int32 id )
sal_Int32 SAL_CALL SAXEventKeeperImpl::addBlocker( )
throw (cssu::RuntimeException, std::exception)
{
- return createBlocker(cssxc::sax::ConstOfSecurityId::UNDEFINEDSECURITYID);
+ return createBlocker();
}
void SAL_CALL SAXEventKeeperImpl::removeBlocker( sal_Int32 id )
@@ -1071,7 +1065,6 @@ sal_Int32 SAL_CALL SAXEventKeeperImpl::addSecurityElementCollector(
throw (cssu::RuntimeException, std::exception)
{
return createElementCollector(
- cssxc::sax::ConstOfSecurityId::UNDEFINEDSECURITYID,
priority,
modifyElement,
nullptr);
diff --git a/xmlsecurity/source/framework/saxeventkeeperimpl.hxx b/xmlsecurity/source/framework/saxeventkeeperimpl.hxx
index 52fd955d13b5..f1915831a53c 100644
--- a/xmlsecurity/source/framework/saxeventkeeperimpl.hxx
+++ b/xmlsecurity/source/framework/saxeventkeeperimpl.hxx
@@ -213,14 +213,13 @@ private:
void markElementMarkBuffer(sal_Int32 nId);
sal_Int32 createElementCollector(
- sal_Int32 nSecurityId,
com::sun::star::xml::crypto::sax::ElementMarkPriority nPriority,
bool bModifyElement,
const com::sun::star::uno::Reference<
com::sun::star::xml::crypto::sax::XReferenceResolvedListener>&
xReferenceResolvedListener);
- sal_Int32 createBlocker(sal_Int32 nSecurityId);
+ sal_Int32 createBlocker();
public:
SAXEventKeeperImpl();