summaryrefslogtreecommitdiff
path: root/xmlscript
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-07-02 22:26:57 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-07-02 22:26:57 +0200
commitdd3df0f4cb3bbc65528e0069542e841bcd506a66 (patch)
tree3bdfc7f59534044c92dc0a4d1d1e63404e6c523f /xmlscript
parent6cfce7dd5f5e6b8af2ba50fcf8a287db0a4a1d17 (diff)
loplugin:casttovoid: xmlscript
Change-Id: Iff674c2faed83e30316212336500865fabf59c30
Diffstat (limited to 'xmlscript')
-rw-r--r--xmlscript/source/xml_helper/xml_element.cxx1
-rw-r--r--xmlscript/source/xml_helper/xml_impctx.cxx2
2 files changed, 0 insertions, 3 deletions
diff --git a/xmlscript/source/xml_helper/xml_element.cxx b/xmlscript/source/xml_helper/xml_element.cxx
index 326ba5305124..5b8b6b0326db 100644
--- a/xmlscript/source/xml_helper/xml_element.cxx
+++ b/xmlscript/source/xml_helper/xml_element.cxx
@@ -76,7 +76,6 @@ OUString XMLElement::getNameByIndex( sal_Int16 nPos )
OUString XMLElement::getTypeByIndex( sal_Int16 nPos )
{
OSL_ASSERT( (size_t)nPos < _attrNames.size() );
- static_cast<void>(nPos);
// xxx todo
return OUString();
}
diff --git a/xmlscript/source/xml_helper/xml_impctx.cxx b/xmlscript/source/xml_helper/xml_impctx.cxx
index 09ec1373cd0d..94a97ac8c508 100644
--- a/xmlscript/source/xml_helper/xml_impctx.cxx
+++ b/xmlscript/source/xml_helper/xml_impctx.cxx
@@ -568,7 +568,6 @@ void DocumentHandlerImpl::endElement(
{
--m_nSkipElements;
SAL_INFO("xmlscript.xmlhelper", "### received endElement() for \"" << rQElementName << "\".");
- static_cast<void>(rQElementName);
return;
}
@@ -664,7 +663,6 @@ OUString ExtendedAttributes::getQNameByIndex( sal_Int32 nIndex )
OUString ExtendedAttributes::getTypeByIndex( sal_Int32 nIndex )
{
- static_cast<void>(nIndex);
SAL_WARN_IF( nIndex >= m_nAttributes , "xmlscript.xmlhelper", "nIndex is bigger then m_nAttributes");
return OUString(); // unsupported
}