summaryrefslogtreecommitdiff
path: root/xmlsecurity/source/xmlsec/xmlstreamio.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmlsecurity/source/xmlsec/xmlstreamio.cxx')
-rw-r--r--xmlsecurity/source/xmlsec/xmlstreamio.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmlsecurity/source/xmlsec/xmlstreamio.cxx b/xmlsecurity/source/xmlsec/xmlstreamio.cxx
index 8223a9f1ad79..1034e8bde594 100644
--- a/xmlsecurity/source/xmlsec/xmlstreamio.cxx
+++ b/xmlsecurity/source/xmlsec/xmlstreamio.cxx
@@ -116,7 +116,7 @@ int xmlStreamRead( void* context, char* buffer, int len )
if( ( enableXmlStreamIO & XMLSTREAMIO_INITIALIZED ) &&
( enableXmlStreamIO & XMLSTREAMIO_REGISTERED ) ) {
if( context != NULL ) {
- xInputStream = ( com::sun::star::io::XInputStream* )context ;
+ xInputStream = static_cast<com::sun::star::io::XInputStream*>(context);
if( !xInputStream.is() )
return 0 ;
@@ -137,7 +137,7 @@ int xmlStreamClose( void * context )
( enableXmlStreamIO & XMLSTREAMIO_REGISTERED ) ) {
if( context != NULL ) {
::com::sun::star::io::XInputStream* pInputStream ;
- pInputStream = ( ::com::sun::star::io::XInputStream* )context ;
+ pInputStream = static_cast<css::io::XInputStream*>(context);
pInputStream->release() ;
}
}