Kaydet (Commit) b07cb641 authored tarafından Ivo Hinkelmann's avatar Ivo Hinkelmann

INTEGRATION: CWS jl51 (1.9.30); FILE MERGED

2007/02/05 13:54:23 jl 1.9.30.1: #i69228 warning free code
üst 70ad4bc0
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: x509certificate_nssimpl.cxx,v $ * $RCSfile: x509certificate_nssimpl.cxx,v $
* *
* $Revision: 1.9 $ * $Revision: 1.10 $
* *
* last change: $Author: obo $ $Date: 2006-09-16 14:46:10 $ * last change: $Author: ihi $ $Date: 2007-04-17 10:28:02 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -100,7 +100,7 @@ sal_Int16 SAL_CALL X509Certificate_NssImpl :: getVersion() throw ( ::com::sun::s ...@@ -100,7 +100,7 @@ sal_Int16 SAL_CALL X509Certificate_NssImpl :: getVersion() throw ( ::com::sun::s
return serial ; return serial ;
} else { } else {
return NULL ; return ::com::sun::star::uno::Sequence< sal_Int8 >();
} }
} }
...@@ -186,7 +186,7 @@ sal_Int16 SAL_CALL X509Certificate_NssImpl :: getVersion() throw ( ::com::sun::s ...@@ -186,7 +186,7 @@ sal_Int16 SAL_CALL X509Certificate_NssImpl :: getVersion() throw ( ::com::sun::s
return issuerUid ; return issuerUid ;
} else { } else {
return NULL ; return ::com::sun::star::uno::Sequence< sal_Int8 >();
} }
} }
...@@ -198,7 +198,7 @@ sal_Int16 SAL_CALL X509Certificate_NssImpl :: getVersion() throw ( ::com::sun::s ...@@ -198,7 +198,7 @@ sal_Int16 SAL_CALL X509Certificate_NssImpl :: getVersion() throw ( ::com::sun::s
return subjectUid ; return subjectUid ;
} else { } else {
return NULL ; return ::com::sun::star::uno::Sequence< sal_Int8 >();
} }
} }
...@@ -225,7 +225,7 @@ sal_Int16 SAL_CALL X509Certificate_NssImpl :: getVersion() throw ( ::com::sun::s ...@@ -225,7 +225,7 @@ sal_Int16 SAL_CALL X509Certificate_NssImpl :: getVersion() throw ( ::com::sun::s
return xExtns ; return xExtns ;
} else { } else {
return NULL ; return ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::security::XCertificateExtension > > ();
} }
} }
...@@ -267,7 +267,7 @@ sal_Int16 SAL_CALL X509Certificate_NssImpl :: getVersion() throw ( ::com::sun::s ...@@ -267,7 +267,7 @@ sal_Int16 SAL_CALL X509Certificate_NssImpl :: getVersion() throw ( ::com::sun::s
return rawCert ; return rawCert ;
} else { } else {
return NULL ; return ::com::sun::star::uno::Sequence< sal_Int8 >();
} }
} }
...@@ -313,7 +313,7 @@ void X509Certificate_NssImpl :: setRawCert( Sequence< sal_Int8 > rawCert ) throw ...@@ -313,7 +313,7 @@ void X509Certificate_NssImpl :: setRawCert( Sequence< sal_Int8 > rawCert ) throw
/* XUnoTunnel */ /* XUnoTunnel */
sal_Int64 SAL_CALL X509Certificate_NssImpl :: getSomething( const Sequence< sal_Int8 >& aIdentifier ) throw( RuntimeException ) { sal_Int64 SAL_CALL X509Certificate_NssImpl :: getSomething( const Sequence< sal_Int8 >& aIdentifier ) throw( RuntimeException ) {
if( aIdentifier.getLength() == 16 && 0 == rtl_compareMemory( getUnoTunnelId().getConstArray(), aIdentifier.getConstArray(), 16 ) ) { if( aIdentifier.getLength() == 16 && 0 == rtl_compareMemory( getUnoTunnelId().getConstArray(), aIdentifier.getConstArray(), 16 ) ) {
return ( sal_Int64 )this ; return sal::static_int_cast<sal_Int64>(reinterpret_cast<sal_uIntPtr>(this));
} }
return 0 ; return 0 ;
} }
...@@ -336,7 +336,8 @@ const Sequence< sal_Int8>& X509Certificate_NssImpl :: getUnoTunnelId() { ...@@ -336,7 +336,8 @@ const Sequence< sal_Int8>& X509Certificate_NssImpl :: getUnoTunnelId() {
X509Certificate_NssImpl* X509Certificate_NssImpl :: getImplementation( const Reference< XInterface > xObj ) { X509Certificate_NssImpl* X509Certificate_NssImpl :: getImplementation( const Reference< XInterface > xObj ) {
Reference< XUnoTunnel > xUT( xObj , UNO_QUERY ) ; Reference< XUnoTunnel > xUT( xObj , UNO_QUERY ) ;
if( xUT.is() ) { if( xUT.is() ) {
return ( X509Certificate_NssImpl* )xUT->getSomething( getUnoTunnelId() ) ; return reinterpret_cast<X509Certificate_NssImpl*>(
sal::static_int_cast<sal_uIntPtr>(xUT->getSomething( getUnoTunnelId() )));
} else } else
return NULL ; return NULL ;
} }
...@@ -378,7 +379,7 @@ X509Certificate_NssImpl* X509Certificate_NssImpl :: getImplementation( const Ref ...@@ -378,7 +379,7 @@ X509Certificate_NssImpl* X509Certificate_NssImpl :: getImplementation( const Ref
} }
else else
{ {
return NULL; return ::com::sun::star::uno::Sequence< sal_Int8 >();
} }
} }
...@@ -415,7 +416,7 @@ X509Certificate_NssImpl* X509Certificate_NssImpl :: getImplementation( const Ref ...@@ -415,7 +416,7 @@ X509Certificate_NssImpl* X509Certificate_NssImpl :: getImplementation( const Ref
} }
} }
return NULL ; return ::com::sun::star::uno::Sequence< sal_Int8 >();
} }
::rtl::OUString SAL_CALL X509Certificate_NssImpl::getSignatureAlgorithm() ::rtl::OUString SAL_CALL X509Certificate_NssImpl::getSignatureAlgorithm()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment