diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-28 19:58:53 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-28 20:26:18 +0100 |
commit | 25570b1853381b8b4995e1ecda77b6aee976fdac (patch) | |
tree | c50defadd38a792cc5e53db8340763e6a793f906 /xmlsecurity | |
parent | bool improvements (diff) | |
download | core-25570b1853381b8b4995e1ecda77b6aee976fdac.tar.gz core-25570b1853381b8b4995e1ecda77b6aee976fdac.zip |
bool improvements
Change-Id: I550337b24e6efe96bb8ac40bd6e574065e84b135
Diffstat (limited to 'xmlsecurity')
5 files changed, 9 insertions, 9 deletions
diff --git a/xmlsecurity/source/component/documentdigitalsignatures.cxx b/xmlsecurity/source/component/documentdigitalsignatures.cxx index a624db4493d0..0fa1b1c40cdb 100644 --- a/xmlsecurity/source/component/documentdigitalsignatures.cxx +++ b/xmlsecurity/source/component/documentdigitalsignatures.cxx @@ -240,7 +240,7 @@ DocumentDigitalSignatures::ImplVerifySignatures( { if (!rxStorage.is()) { - DBG_ASSERT(0, "Error, no XStorage provided"); + DBG_ASSERT(false, "Error, no XStorage provided"); return Sequence<css::security::DocumentSignatureInformation>(); } // First check for the InputStream, to avoid unnecessary initialization of the security environemnt... @@ -381,7 +381,7 @@ void DocumentDigitalSignatures::showCertificate( if ( bInit ) { - CertificateViewer aViewer( NULL, aSignatureHelper.GetSecurityEnvironment(), _Certificate, sal_False ); + CertificateViewer aViewer( NULL, aSignatureHelper.GetSecurityEnvironment(), _Certificate, false ); aViewer.Execute(); } diff --git a/xmlsecurity/source/dialogs/certificatechooser.cxx b/xmlsecurity/source/dialogs/certificatechooser.cxx index aa829172641c..e86ba42d6a3d 100644 --- a/xmlsecurity/source/dialogs/certificatechooser.cxx +++ b/xmlsecurity/source/dialogs/certificatechooser.cxx @@ -102,12 +102,12 @@ short CertificateChooser::Execute() Window* pMe = this; Window* pParent = GetParent(); if ( pParent ) - pParent->EnableInput( sal_False ); + pParent->EnableInput( false ); pMe->Show(); pMe->Update(); ImplInitialize(); if ( pParent ) - pParent->EnableInput( sal_True ); + pParent->EnableInput( true ); return ModalDialog::Execute(); } @@ -217,7 +217,7 @@ void CertificateChooser::ImplShowCertificateDetails() uno::Reference< css::security::XCertificate > xCert = GetSelectedCertificate(); if( xCert.is() ) { - CertificateViewer aViewer( this, mxSecurityEnvironment, xCert, sal_True ); + CertificateViewer aViewer( this, mxSecurityEnvironment, xCert, true ); aViewer.Execute(); } } diff --git a/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx b/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx index e1ec7731e864..b9452c3b0045 100644 --- a/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx +++ b/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx @@ -589,7 +589,7 @@ void DigitalSignaturesDialog::ImplFillSignaturesBox() //in the digital signature dialog. //Comparing the X509IssuerName with the one from the X509Certificate in order //to find out if the X509IssuerName was modified does not work. See #i62684 - DBG_ASSERT(sal_False, "Could not find embedded certificate!"); + DBG_ASSERT(false, "Could not find embedded certificate!"); } //In case there is no embedded certificate we try to get it from a local store diff --git a/xmlsecurity/source/helper/xmlsignaturehelper2.cxx b/xmlsecurity/source/helper/xmlsignaturehelper2.cxx index 164acb28bc08..19ae5c0763eb 100644 --- a/xmlsecurity/source/helper/xmlsignaturehelper2.cxx +++ b/xmlsecurity/source/helper/xmlsignaturehelper2.cxx @@ -170,7 +170,7 @@ uno::Reference< io::XInputStream > SAL_CALL UriBindingHelper::getUriBinding( con pStream->Seek( STREAM_SEEK_TO_END ); sal_uLong nBytes = pStream->Tell(); pStream->Seek( STREAM_SEEK_TO_BEGIN ); - SvLockBytesRef xLockBytes = new SvLockBytes( pStream, sal_True ); + SvLockBytesRef xLockBytes = new SvLockBytes( pStream, true ); xInputStream = new utl::OInputStreamHelper( xLockBytes, nBytes ); } return xInputStream; diff --git a/xmlsecurity/source/helper/xsecparser.cxx b/xmlsecurity/source/helper/xsecparser.cxx index 9088d343f966..afb57e1415f9 100644 --- a/xmlsecurity/source/helper/xsecparser.cxx +++ b/xmlsecurity/source/helper/xsecparser.cxx @@ -129,7 +129,7 @@ void SAL_CALL XSecParser::startElement( * a xml stream */ { - m_pXSecController->addStreamReference( m_currentReferenceURI, sal_False); + m_pXSecController->addStreamReference( m_currentReferenceURI, false); m_bReferenceUnresolved = false; } } @@ -208,7 +208,7 @@ void SAL_CALL XSecParser::endElement( const OUString& aName ) * it must be a octet stream */ { - m_pXSecController->addStreamReference( m_currentReferenceURI, sal_True); + m_pXSecController->addStreamReference( m_currentReferenceURI, true); m_bReferenceUnresolved = false; } |