summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2011-03-01 17:55:09 +0100
committerThomas Arnhold <thomas@arnhold.org>2011-03-02 15:00:30 +0100
commitfdeb50167836803f1a79082ddd25e4ae8ac20611 (patch)
tree3e9ff2e3cba72052ce97b0b16575791d2cdbdf6f /xmlsecurity
parent096b61aa08ee37c6d6818791a7c5fb94d2f1ef7d (diff)
Move DBG_ERROR to OSL_FAIL
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/source/component/registerservices.cxx2
-rw-r--r--xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx6
-rw-r--r--xmlsecurity/source/dialogs/macrosecurity.cxx2
-rw-r--r--xmlsecurity/workben/signaturetest.cxx8
4 files changed, 9 insertions, 9 deletions
diff --git a/xmlsecurity/source/component/registerservices.cxx b/xmlsecurity/source/component/registerservices.cxx
index 9dc442ef490a..e95a2111c690 100644
--- a/xmlsecurity/source/component/registerservices.cxx
+++ b/xmlsecurity/source/component/registerservices.cxx
@@ -83,7 +83,7 @@ sal_Bool SAL_CALL component_writeInfo( void* /*pServiceManager*/, void* pRegistr
}
catch (registry::InvalidRegistryException &)
{
- DBG_ERROR( "InvalidRegistryException!" );
+ OSL_FAIL( "InvalidRegistryException!" );
}
}
return sal_False;
diff --git a/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx b/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx
index 9dafad5a9c8b..d4f08d7190de 100644
--- a/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx
+++ b/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx
@@ -444,7 +444,7 @@ IMPL_LINK( DigitalSignaturesDialog, AddButtonHdl, Button*, EMPTYARG )
rtl::OUString aCertSerial = xSerialNumberAdapter->toString( xCert->getSerialNumber() );
if ( !aCertSerial.getLength() )
{
- DBG_ERROR( "Error in Certificate, problem with serial number!" );
+ OSL_FAIL( "Error in Certificate, problem with serial number!" );
return -1;
}
@@ -519,7 +519,7 @@ IMPL_LINK( DigitalSignaturesDialog, AddButtonHdl, Button*, EMPTYARG )
}
catch ( uno::Exception& )
{
- DBG_ERROR( "Exception while adding a signature!" );
+ OSL_FAIL( "Exception while adding a signature!" );
// Don't keep invalid entries...
ImplGetSignatureInformations(true);
ImplFillSignaturesBox();
@@ -561,7 +561,7 @@ IMPL_LINK( DigitalSignaturesDialog, RemoveButtonHdl, Button*, EMPTYARG )
}
catch ( uno::Exception& )
{
- DBG_ERROR( "Exception while removing a signature!" );
+ OSL_FAIL( "Exception while removing a signature!" );
// Don't keep invalid entries...
ImplGetSignatureInformations(true);
ImplFillSignaturesBox();
diff --git a/xmlsecurity/source/dialogs/macrosecurity.cxx b/xmlsecurity/source/dialogs/macrosecurity.cxx
index f1b1728a205b..5454fe8a5bc8 100644
--- a/xmlsecurity/source/dialogs/macrosecurity.cxx
+++ b/xmlsecurity/source/dialogs/macrosecurity.cxx
@@ -140,7 +140,7 @@ MacroSecurityLevelTP::MacroSecurityLevelTP( Window* _pParent, MacroSecurity* _pD
pCheck->Check();
else
{
- DBG_ERROR("illegal macro security level");
+ OSL_FAIL("illegal macro security level");
}
maSecReadonlyFI.Show(bReadonly);
if(bReadonly)
diff --git a/xmlsecurity/workben/signaturetest.cxx b/xmlsecurity/workben/signaturetest.cxx
index c0cb2e4d9e1a..71a8e82e34dd 100644
--- a/xmlsecurity/workben/signaturetest.cxx
+++ b/xmlsecurity/workben/signaturetest.cxx
@@ -93,7 +93,7 @@ void Main();
uno::Reference< uno::XComponentContext > xCtx( cppu::defaultBootstrap_InitialComponentContext() );
if ( !xCtx.is() )
{
- DBG_ERROR( "Error creating initial component context!" );
+ OSL_FAIL( "Error creating initial component context!" );
return -1;
}
@@ -101,7 +101,7 @@ void Main();
if ( !xMSF.is() )
{
- DBG_ERROR( "No service manager!" );
+ OSL_FAIL( "No service manager!" );
return -1;
}
@@ -112,14 +112,14 @@ void Main();
sal_Bool bSuccess = ::ucb::ContentBroker::initialize( xMSF, aArgs );
if ( !bSuccess )
{
- DBG_ERROR( "Error creating UCB!" );
+ OSL_FAIL( "Error creating UCB!" );
return -1;
}
}
catch ( uno::Exception const & )
{
- DBG_ERROR( "Exception during creation of initial component context!" );
+ OSL_FAIL( "Exception during creation of initial component context!" );
return -1;
}
comphelper::setProcessServiceFactory( xMSF );