Kaydet (Commit) 25570b18 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

bool improvements

Change-Id: I550337b24e6efe96bb8ac40bd6e574065e84b135
üst fa189d74
...@@ -240,7 +240,7 @@ DocumentDigitalSignatures::ImplVerifySignatures( ...@@ -240,7 +240,7 @@ DocumentDigitalSignatures::ImplVerifySignatures(
{ {
if (!rxStorage.is()) if (!rxStorage.is())
{ {
DBG_ASSERT(0, "Error, no XStorage provided"); DBG_ASSERT(false, "Error, no XStorage provided");
return Sequence<css::security::DocumentSignatureInformation>(); return Sequence<css::security::DocumentSignatureInformation>();
} }
// First check for the InputStream, to avoid unnecessary initialization of the security environemnt... // First check for the InputStream, to avoid unnecessary initialization of the security environemnt...
...@@ -381,7 +381,7 @@ void DocumentDigitalSignatures::showCertificate( ...@@ -381,7 +381,7 @@ void DocumentDigitalSignatures::showCertificate(
if ( bInit ) if ( bInit )
{ {
CertificateViewer aViewer( NULL, aSignatureHelper.GetSecurityEnvironment(), _Certificate, sal_False ); CertificateViewer aViewer( NULL, aSignatureHelper.GetSecurityEnvironment(), _Certificate, false );
aViewer.Execute(); aViewer.Execute();
} }
......
...@@ -102,12 +102,12 @@ short CertificateChooser::Execute() ...@@ -102,12 +102,12 @@ short CertificateChooser::Execute()
Window* pMe = this; Window* pMe = this;
Window* pParent = GetParent(); Window* pParent = GetParent();
if ( pParent ) if ( pParent )
pParent->EnableInput( sal_False ); pParent->EnableInput( false );
pMe->Show(); pMe->Show();
pMe->Update(); pMe->Update();
ImplInitialize(); ImplInitialize();
if ( pParent ) if ( pParent )
pParent->EnableInput( sal_True ); pParent->EnableInput( true );
return ModalDialog::Execute(); return ModalDialog::Execute();
} }
...@@ -217,7 +217,7 @@ void CertificateChooser::ImplShowCertificateDetails() ...@@ -217,7 +217,7 @@ void CertificateChooser::ImplShowCertificateDetails()
uno::Reference< css::security::XCertificate > xCert = GetSelectedCertificate(); uno::Reference< css::security::XCertificate > xCert = GetSelectedCertificate();
if( xCert.is() ) if( xCert.is() )
{ {
CertificateViewer aViewer( this, mxSecurityEnvironment, xCert, sal_True ); CertificateViewer aViewer( this, mxSecurityEnvironment, xCert, true );
aViewer.Execute(); aViewer.Execute();
} }
} }
......
...@@ -589,7 +589,7 @@ void DigitalSignaturesDialog::ImplFillSignaturesBox() ...@@ -589,7 +589,7 @@ void DigitalSignaturesDialog::ImplFillSignaturesBox()
//in the digital signature dialog. //in the digital signature dialog.
//Comparing the X509IssuerName with the one from the X509Certificate in order //Comparing the X509IssuerName with the one from the X509Certificate in order
//to find out if the X509IssuerName was modified does not work. See #i62684 //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 //In case there is no embedded certificate we try to get it from a local store
......
...@@ -170,7 +170,7 @@ uno::Reference< io::XInputStream > SAL_CALL UriBindingHelper::getUriBinding( con ...@@ -170,7 +170,7 @@ uno::Reference< io::XInputStream > SAL_CALL UriBindingHelper::getUriBinding( con
pStream->Seek( STREAM_SEEK_TO_END ); pStream->Seek( STREAM_SEEK_TO_END );
sal_uLong nBytes = pStream->Tell(); sal_uLong nBytes = pStream->Tell();
pStream->Seek( STREAM_SEEK_TO_BEGIN ); 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 ); xInputStream = new utl::OInputStreamHelper( xLockBytes, nBytes );
} }
return xInputStream; return xInputStream;
......
...@@ -129,7 +129,7 @@ void SAL_CALL XSecParser::startElement( ...@@ -129,7 +129,7 @@ void SAL_CALL XSecParser::startElement(
* a xml stream * a xml stream
*/ */
{ {
m_pXSecController->addStreamReference( m_currentReferenceURI, sal_False); m_pXSecController->addStreamReference( m_currentReferenceURI, false);
m_bReferenceUnresolved = false; m_bReferenceUnresolved = false;
} }
} }
...@@ -208,7 +208,7 @@ void SAL_CALL XSecParser::endElement( const OUString& aName ) ...@@ -208,7 +208,7 @@ void SAL_CALL XSecParser::endElement( const OUString& aName )
* it must be a octet stream * it must be a octet stream
*/ */
{ {
m_pXSecController->addStreamReference( m_currentReferenceURI, sal_True); m_pXSecController->addStreamReference( m_currentReferenceURI, true);
m_bReferenceUnresolved = false; m_bReferenceUnresolved = false;
} }
......
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