summaryrefslogtreecommitdiff
path: root/extensions/workben/testcomponent.cxx
diff options
context:
space:
mode:
authorMathias Bauer <mba@openoffice.org>2009-07-10 14:03:42 +0200
committerMathias Bauer <mba@openoffice.org>2009-07-10 14:03:42 +0200
commita7e564b4836154b84d67814486123eab6cb639c2 (patch)
treedd2acabfabf9b8fa8052e9406c5d51ec14a9b9da /extensions/workben/testcomponent.cxx
parent87b38cb17d0443b890befe17043698841175d285 (diff)
#i103452#: replace PRODUCT by !DBG_UTIL; replace assert by OSL_ASSERT where possible
Diffstat (limited to 'extensions/workben/testcomponent.cxx')
-rw-r--r--extensions/workben/testcomponent.cxx11
1 files changed, 3 insertions, 8 deletions
diff --git a/extensions/workben/testcomponent.cxx b/extensions/workben/testcomponent.cxx
index 869f5331752e..08d8af4831b8 100644
--- a/extensions/workben/testcomponent.cxx
+++ b/extensions/workben/testcomponent.cxx
@@ -52,11 +52,6 @@
#include <tools/string.hxx>
#include <vos/conditn.hxx>
-#if OSL_DEBUG_LEVEL == 0
-#define NDEBUG
-#endif
-#include <assert.h>
-
#include <smart/com/sun/star/test/XSimpleTest.hxx>
using namespace rtl;
@@ -84,7 +79,7 @@ int __LOADONCALLAPI main (int argc, char **argv)
// create service manager
// XMultiServiceFactoryRef xSMgr = getProcessServiceManager();
XMultiServiceFactoryRef xSMgr = createRegistryServiceManager();
- assert( xSMgr.is() );
+ OSL_ASSERT( xSMgr.is() );
registerUsrServices( xSMgr );
setProcessServiceManager( xSMgr );
@@ -98,9 +93,9 @@ int __LOADONCALLAPI main (int argc, char **argv)
x->queryInterface( XImplementationRegistration::getSmartUik() , xReg );
/* x = xSMgr->createInstance( L"stardiv.uno.repos.SimpleRegistry" );
- assert( x.is() );
+ OSL_ASSERT( x.is() );
x->queryInterface( XSimpleRegistry::getSmartUik() , xSimpleReg );
- assert( xSimpleReg.is() );
+ OSL_ASSERT( xSimpleReg.is() );
xSimpleReg->open( L"testcomp.rdb" , FALSE , TRUE );
*/ }
catch( Exception& e ) {