diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-06-02 11:29:00 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-06-02 11:29:00 +0200 |
commit | 3f846cb7a40ea6226c68ff22981d6090da66e6aa (patch) | |
tree | c5aef00f363a401f6929cc82a760e5fb9df35edb /xmlsecurity | |
parent | 0fded753c787c9e0e374bf65fe5c53538adda206 (diff) |
loplugin:cstylecast: deal with those that are (technically) const_cast
Change-Id: I7128d99926bddf5ffd0a87099c7fa3ce3a1e08e0
Diffstat (limited to 'xmlsecurity')
-rw-r--r-- | xmlsecurity/source/framework/buffernode.cxx | 8 | ||||
-rw-r--r-- | xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx | 2 | ||||
-rw-r--r-- | xmlsecurity/source/xmlsec/xmlstreamio.cxx | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/xmlsecurity/source/framework/buffernode.cxx b/xmlsecurity/source/framework/buffernode.cxx index cbe27e70b06d..13bec5376c57 100644 --- a/xmlsecurity/source/framework/buffernode.cxx +++ b/xmlsecurity/source/framework/buffernode.cxx @@ -367,7 +367,7 @@ const BufferNode* BufferNode::getFirstChild() const rc = const_cast<BufferNode*>(m_vChildren.front()); } - return (const BufferNode*)rc; + return rc; } void BufferNode::addChild(const BufferNode* pChild, sal_Int32 nPosition) @@ -557,7 +557,7 @@ const BufferNode* BufferNode::getNextSibling() const rc = const_cast<BufferNode*>(m_pParent->getNextChild(this)); } - return (const BufferNode*)rc; + return rc; } const BufferNode* BufferNode::isAncestor(const BufferNode* pDescendant) const @@ -609,7 +609,7 @@ const BufferNode* BufferNode::isAncestor(const BufferNode* pDescendant) const } } - return (const BufferNode*)rc; + return rc; } bool BufferNode::isPrevious(const BufferNode* pFollowing) const @@ -1065,7 +1065,7 @@ const BufferNode* BufferNode::getNextChild(const BufferNode* pChild) const } } - return (const BufferNode*)rc; + return rc; } diff --git a/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx b/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx index ceb628927fc6..7d2617144583 100644 --- a/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx +++ b/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx @@ -561,7 +561,7 @@ Reference< XCertificate > SecurityEnvironment_NssImpl :: createCertificateFromAs { OString oscert = OUStringToOString( asciiCertificate , RTL_TEXTENCODING_ASCII_US ) ; xmlChar* chCert = xmlStrndup( reinterpret_cast<const xmlChar*>(oscert.getStr()), ( int )oscert.getLength() ) ; - int certSize = xmlSecBase64Decode( chCert, ( xmlSecByte* )chCert, xmlStrlen( chCert ) ) ; + int certSize = xmlSecBase64Decode( chCert, reinterpret_cast<xmlSecByte*>(chCert), xmlStrlen( chCert ) ) ; if (certSize > 0) { Sequence< sal_Int8 > rawCert(certSize) ; diff --git a/xmlsecurity/source/xmlsec/xmlstreamio.cxx b/xmlsecurity/source/xmlsec/xmlstreamio.cxx index 032ee47dae22..29fd95700b4a 100644 --- a/xmlsecurity/source/xmlsec/xmlstreamio.cxx +++ b/xmlsecurity/source/xmlsec/xmlstreamio.cxx @@ -121,7 +121,7 @@ int xmlStreamRead( void* context, char* buffer, int len ) return 0 ; numbers = xInputStream->readBytes( outSeqs, len ) ; - const sal_Int8* readBytes = ( const sal_Int8* )outSeqs.getArray() ; + const sal_Int8* readBytes = outSeqs.getArray() ; for( int i = 0 ; i < numbers ; i ++ ) *( buffer + i ) = *( readBytes + i ) ; } |