diff options
author | Joachim Lingner <jl@openoffice.org> | 2001-03-12 14:38:06 +0000 |
---|---|---|
committer | Joachim Lingner <jl@openoffice.org> | 2001-03-12 14:38:06 +0000 |
commit | 4038b72427b8fac68219b39e90fc43cbd20dcc41 (patch) | |
tree | 8df711efb615eea6cb418bf6e16e6e37e92b6bea /stoc/source | |
parent | 8c43ce3310b262edac3635023107167d56798964 (diff) |
OSL_ENSHURE replaced by OSL_ENSURE
Diffstat (limited to 'stoc/source')
23 files changed, 116 insertions, 114 deletions
diff --git a/stoc/source/corereflection/base.hxx b/stoc/source/corereflection/base.hxx index 8b7e6671d710..1f683e5df952 100644 --- a/stoc/source/corereflection/base.hxx +++ b/stoc/source/corereflection/base.hxx @@ -2,9 +2,9 @@ * * $RCSfile: base.hxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: svesik $ $Date: 2000-11-23 01:55:21 $ + * last change: $Author: jl $ $Date: 2001-03-12 15:32:15 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -441,7 +441,7 @@ inline const Mapping & IdlMemberImpl::getCpp2Uno() { _aCpp2Uno = Mapping( OUString( RTL_CONSTASCII_USTRINGPARAM(CPPU_CURRENT_LANGUAGE_BINDING_NAME) ), OUString( RTL_CONSTASCII_USTRINGPARAM(UNO_LB_UNO) ) ); - OSL_ENSHURE( _aCpp2Uno.is(), "### cannot c++ to uno mapping!" ); + OSL_ENSURE( _aCpp2Uno.is(), "### cannot c++ to uno mapping!" ); if (! _aCpp2Uno.is()) { throw RuntimeException( @@ -463,7 +463,7 @@ inline const Mapping & IdlMemberImpl::getUno2Cpp() { _aUno2Cpp = Mapping( OUString( RTL_CONSTASCII_USTRINGPARAM(UNO_LB_UNO) ), OUString( RTL_CONSTASCII_USTRINGPARAM(CPPU_CURRENT_LANGUAGE_BINDING_NAME) ) ); - OSL_ENSHURE( _aUno2Cpp.is(), "### cannot uno to c++ mapping!" ); + OSL_ENSURE( _aUno2Cpp.is(), "### cannot uno to c++ mapping!" ); if (! _aUno2Cpp.is()) { throw RuntimeException( diff --git a/stoc/source/corereflection/crbase.cxx b/stoc/source/corereflection/crbase.cxx index 91250d0f4d4c..719bedd91112 100644 --- a/stoc/source/corereflection/crbase.cxx +++ b/stoc/source/corereflection/crbase.cxx @@ -2,9 +2,9 @@ * * $RCSfile: crbase.cxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-18 15:29:33 $ + * last change: $Author: jl $ $Date: 2001-03-12 15:32:15 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -111,7 +111,7 @@ IdlClassImpl::IdlClassImpl( IdlReflectionServiceImpl * pReflection, #ifdef TEST_LIST_CLASSES ClassNameList::const_iterator iFind( find( g_aClassNames.begin(), g_aClassNames.end(), _aName ) ); - OSL_ENSHURE( iFind == g_aClassNames.end(), "### idl class already exists!" ); + OSL_ENSURE( iFind == g_aClassNames.end(), "### idl class already exists!" ); g_aClassNames.push_front( _aName ); #endif } @@ -125,7 +125,7 @@ IdlClassImpl::~IdlClassImpl() #ifdef TEST_LIST_CLASSES ClassNameList::iterator iFind( find( g_aClassNames.begin(), g_aClassNames.end(), _aName ) ); - OSL_ENSHURE( iFind != g_aClassNames.end(), "### idl class does not exist!" ); + OSL_ENSURE( iFind != g_aClassNames.end(), "### idl class does not exist!" ); g_aClassNames.erase( iFind ); #endif } @@ -200,21 +200,21 @@ void IdlClassImpl::createObject( Any & rObj ) Sequence< Reference< XIdlClass > > IdlClassImpl::getClasses() throw(::com::sun::star::uno::RuntimeException) { - OSL_ENSHURE( sal_False, "### unexpected use!" ); + OSL_ENSURE( sal_False, "### unexpected use!" ); return Sequence< Reference< XIdlClass > >(); } //__________________________________________________________________________________________________ Reference< XIdlClass > IdlClassImpl::getClass( const OUString & rName ) throw(::com::sun::star::uno::RuntimeException) { - OSL_ENSHURE( sal_False, "### unexpected use!" ); + OSL_ENSURE( sal_False, "### unexpected use!" ); return Reference< XIdlClass >(); } //__________________________________________________________________________________________________ Sequence< Reference< XIdlClass > > IdlClassImpl::getInterfaces() throw(::com::sun::star::uno::RuntimeException) { -// OSL_ENSHURE( sal_False, "### unexpected use!" ); +// OSL_ENSURE( sal_False, "### unexpected use!" ); return Sequence< Reference< XIdlClass > >(); } diff --git a/stoc/source/corereflection/crcomp.cxx b/stoc/source/corereflection/crcomp.cxx index 4743f3d1c9ab..0e4b46ee2511 100644 --- a/stoc/source/corereflection/crcomp.cxx +++ b/stoc/source/corereflection/crcomp.cxx @@ -2,9 +2,9 @@ * * $RCSfile: crcomp.cxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-18 15:29:33 $ + * last change: $Author: jl $ $Date: 2001-03-12 15:32:15 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -224,7 +224,7 @@ Any IdlCompFieldImpl::get( const Any & rObj ) while (pTD && !typelib_typedescription_equals( pTD, pDeclTD )) pTD = (typelib_TypeDescription *)((typelib_CompoundTypeDescription *)pTD)->pBaseTypeDescription; - OSL_ENSHURE( pTD, "### illegal object type!" ); + OSL_ENSURE( pTD, "### illegal object type!" ); if (pTD) { TYPELIB_DANGER_RELEASE( pObjTD ); @@ -255,7 +255,7 @@ void IdlCompFieldImpl::set( const Any & rObj, const Any & rValue ) while (pTD && !typelib_typedescription_equals( pTD, pDeclTD )) pTD = (typelib_TypeDescription *)((typelib_CompoundTypeDescription *)pTD)->pBaseTypeDescription; - OSL_ENSHURE( pTD, "### illegal object type!" ); + OSL_ENSURE( pTD, "### illegal object type!" ); if (pTD) { TYPELIB_DANGER_RELEASE( pObjTD ); @@ -305,7 +305,7 @@ sal_Bool CompoundIdlClassImpl::isAssignableFrom( const Reference< XIdlClass > & const Sequence< Reference< XIdlClass > > & rSeq = xType->getSuperclasses(); if (rSeq.getLength()) { - OSL_ENSHURE( rSeq.getLength() == 1, "### unexpected len of super classes!" ); + OSL_ENSURE( rSeq.getLength() == 1, "### unexpected len of super classes!" ); return isAssignableFrom( rSeq[0] ); } } @@ -372,7 +372,7 @@ Sequence< Reference< XIdlField > > CompoundIdlClassImpl::getFields() { typelib_TypeDescription * pTD = 0; TYPELIB_DANGER_GET( &pTD, ppTypeRefs[nPos] ); - OSL_ENSHURE( pTD, "### cannot get field in struct!" ); + OSL_ENSURE( pTD, "### cannot get field in struct!" ); if (pTD) { OUString aName( ppNames[nPos] ); diff --git a/stoc/source/corereflection/crefl.cxx b/stoc/source/corereflection/crefl.cxx index 7a280a6eae4e..123a17746240 100644 --- a/stoc/source/corereflection/crefl.cxx +++ b/stoc/source/corereflection/crefl.cxx @@ -2,9 +2,9 @@ * * $RCSfile: crefl.cxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-18 15:29:33 $ + * last change: $Author: jl $ $Date: 2001-03-12 15:32:15 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -96,7 +96,7 @@ IdlReflectionServiceImpl::IdlReflectionServiceImpl( const Reference< XMultiServi UNO_QUERY ) , _aElements( CACHE_SIZE ) { - OSL_ENSHURE( _xTDMgr.is(), "### cannot get service \"com.sun.star.reflection.TypeDescriptionManager\"!" ); + OSL_ENSURE( _xTDMgr.is(), "### cannot get service \"com.sun.star.reflection.TypeDescriptionManager\"!" ); } //__________________________________________________________________________________________________ IdlReflectionServiceImpl::~IdlReflectionServiceImpl() @@ -179,7 +179,7 @@ void IdlReflectionServiceImpl::dispose() _xTDMgr.clear(); _xMgr.clear(); #ifdef TEST_LIST_CLASSES - OSL_ENSHURE( g_aClassNames.size() == 0, "### idl classes still alive!" ); + OSL_ENSURE( g_aClassNames.size() == 0, "### idl classes still alive!" ); ClassNameList::const_iterator iPos( g_aClassNames.begin() ); while (iPos != g_aClassNames.end()) { @@ -228,7 +228,7 @@ Reference< XIdlClass > IdlReflectionServiceImpl::getType( const Any & rObj ) inline Reference< XIdlClass > IdlReflectionServiceImpl::constructClass( typelib_TypeDescription * pTypeDescr ) { - OSL_ENSHURE( pTypeDescr->eTypeClass != typelib_TypeClass_TYPEDEF, "### unexpected typedef!" ); + OSL_ENSURE( pTypeDescr->eTypeClass != typelib_TypeClass_TYPEDEF, "### unexpected typedef!" ); switch (pTypeDescr->eTypeClass) { @@ -455,7 +455,7 @@ sal_Bool SAL_CALL component_writeInfo( } catch (InvalidRegistryException &) { - OSL_ENSHURE( sal_False, "### InvalidRegistryException!" ); + OSL_ENSURE( sal_False, "### InvalidRegistryException!" ); } } return sal_False; diff --git a/stoc/source/corereflection/criface.cxx b/stoc/source/corereflection/criface.cxx index 8ee9855f5d27..357e128250ea 100644 --- a/stoc/source/corereflection/criface.cxx +++ b/stoc/source/corereflection/criface.cxx @@ -2,9 +2,9 @@ * * $RCSfile: criface.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: ganaya $ $Date: 2000-10-10 05:35:45 $ + * last change: $Author: jl $ $Date: 2001-03-12 15:32:15 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -226,7 +226,7 @@ Any IdlAttributeFieldImpl::get( const Any & rObj ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) { uno_Interface * pUnoI = mapToUno( rObj, (typelib_InterfaceTypeDescription *)getDeclTypeDescr() ); - OSL_ENSHURE( pUnoI, "### illegal destination object given!" ); + OSL_ENSURE( pUnoI, "### illegal destination object given!" ); if (pUnoI) { TypeDescription aTD( getTypeDescr()->pAttributeTypeRef ); @@ -273,7 +273,7 @@ void IdlAttributeFieldImpl::set( const Any & rObj, const Any & rValue ) } uno_Interface * pUnoI = mapToUno( rObj, (typelib_InterfaceTypeDescription *)getDeclTypeDescr() ); - OSL_ENSHURE( pUnoI, "### illegal destination object given!" ); + OSL_ENSURE( pUnoI, "### illegal destination object given!" ); if (pUnoI) { TypeDescription aTD( getTypeDescr()->pAttributeTypeRef ); @@ -646,7 +646,7 @@ Any SAL_CALL IdlInterfaceMethodImpl::invoke( const Any & rObj, Sequence< Any > & } uno_Interface * pUnoI = mapToUno( rObj, (typelib_InterfaceTypeDescription *)getDeclTypeDescr() ); - OSL_ENSHURE( pUnoI, "### illegal destination object given!" ); + OSL_ENSURE( pUnoI, "### illegal destination object given!" ); if (pUnoI) { sal_Int32 nParams = getTypeDescr()->nParams; @@ -857,7 +857,7 @@ void InterfaceIdlClassImpl::initMembers() typelib_TypeDescription * pTD = 0; typelib_typedescriptionreference_getDescription( &pTD, ppAllMembers[nPos] ); - OSL_ENSHURE( pTD, "### cannot get type description!" ); + OSL_ENSURE( pTD, "### cannot get type description!" ); pSortedMemberInit[nIndex].first = ((typelib_InterfaceMemberTypeDescription *)pTD)->pMemberName; pSortedMemberInit[nIndex].second = pTD; } @@ -877,7 +877,7 @@ sal_Bool InterfaceIdlClassImpl::isAssignableFrom( const Reference< XIdlClass > & const Sequence< Reference< XIdlClass > > & rSeq = xType->getSuperclasses(); if (rSeq.getLength()) { - OSL_ENSHURE( rSeq.getLength() == 1, "### unexpected len of super classes!" ); + OSL_ENSURE( rSeq.getLength() == 1, "### unexpected len of super classes!" ); return isAssignableFrom( rSeq[0] ); } } diff --git a/stoc/source/defaultregistry/defaultregistry.cxx b/stoc/source/defaultregistry/defaultregistry.cxx index 5e5ba13ae124..4e6ee9ecd87e 100644 --- a/stoc/source/defaultregistry/defaultregistry.cxx +++ b/stoc/source/defaultregistry/defaultregistry.cxx @@ -2,9 +2,9 @@ * * $RCSfile: defaultregistry.cxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-18 15:29:33 $ + * last change: $Author: jl $ $Date: 2001-03-12 15:32:37 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1407,7 +1407,7 @@ sal_Bool SAL_CALL component_writeInfo( } catch (InvalidRegistryException &) { - OSL_ENSHURE( sal_False, "### InvalidRegistryException!" ); + OSL_ENSURE( sal_False, "### InvalidRegistryException!" ); } } return sal_False; diff --git a/stoc/source/implementationregistration/implreg.cxx b/stoc/source/implementationregistration/implreg.cxx index 1f679ecc3ee3..11a03384bebe 100644 --- a/stoc/source/implementationregistration/implreg.cxx +++ b/stoc/source/implementationregistration/implreg.cxx @@ -2,9 +2,9 @@ * * $RCSfile: implreg.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: svesik $ $Date: 2000-11-23 01:32:54 $ + * last change: $Author: jl $ $Date: 2001-03-12 15:33:03 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -79,7 +79,8 @@ #endif #include <uno/mapping.hxx> -#include <vos/thread.hxx> +#include <osl/thread.h> +//#include <vos/thread.hxx> #include <vos/conditn.hxx> #include <rtl/ustring.hxx> @@ -1717,7 +1718,7 @@ sal_Bool SAL_CALL component_writeInfo( } catch (InvalidRegistryException &) { - OSL_ENSHURE( sal_False, "### InvalidRegistryException!" ); + OSL_ENSURE( sal_False, "### InvalidRegistryException!" ); } } return sal_False; diff --git a/stoc/source/inspect/introspection.cxx b/stoc/source/inspect/introspection.cxx index 995be4b2c47e..daa74303824b 100644 --- a/stoc/source/inspect/introspection.cxx +++ b/stoc/source/inspect/introspection.cxx @@ -2,9 +2,9 @@ * * $RCSfile: introspection.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: svesik $ $Date: 2000-11-23 02:03:54 $ + * last change: $Author: jl $ $Date: 2001-03-12 15:33:25 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -75,9 +75,10 @@ #ifndef _OSL_MUTEX_HXX_ #include <osl/mutex.hxx> #endif -#ifndef _VOS_MODULE_HXX_ -#include <vos/module.hxx> -#endif +//#ifndef _VOS_MODULE_HXX_ +//#include <vos/module.hxx> +//#endif +#include <vos/macros.hxx> #ifndef _CPPUHELPER_QUERYINTERFACE_HXX_ #include <cppuhelper/queryinterface.hxx> @@ -1933,7 +1934,7 @@ Reference<XIdlClass> TypeToIdlClass( const Type& rType, const Reference< XMultiS if( !xRefl.is() ) { xRefl = Reference< XIdlReflection >( xMgr->createInstance( OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.reflection.CoreReflection")) ), UNO_QUERY ); - OSL_ENSHURE( xRefl.is(), "### no corereflection!" ); + OSL_ENSURE( xRefl.is(), "### no corereflection!" ); } xRetClass = xRefl->forName( sOWName ); } @@ -2229,7 +2230,7 @@ IntrospectionAccessStatic_Impl* ImplIntrospection::implInspect(const Any& aToIns } else { - OSL_ENSHURE( sal_False, + OSL_ENSURE( sal_False, OString( "Introspection: Property \"" ) + OUStringToOString( aPropName, RTL_TEXTENCODING_ASCII_US ) + OString( "\" found more than once in PropertySet" ) ); @@ -2857,7 +2858,7 @@ IntrospectionAccessStatic_Impl* ImplIntrospection::implInspect(const Any& aToIns if( aSuperClassSeq.getLength() >= 1 ) { xImplClass = aSuperClassSeq.getConstArray()[0]; - OSL_ENSHURE( xImplClass.is(), "super class null" ); + OSL_ENSURE( xImplClass.is(), "super class null" ); } else { @@ -2890,7 +2891,7 @@ IntrospectionAccessStatic_Impl* ImplIntrospection::implInspect(const Any& aToIns Reference<XIdlClass> xClassRef = TypeToIdlClass( aToInspectObj.getValueType(), m_xSMgr ); if( !xClassRef.is() ) { - OSL_ENSHURE( sal_False, "Can't get XIdlClass from Reflection" ); + OSL_ENSURE( sal_False, "Can't get XIdlClass from Reflection" ); return pAccess; } @@ -2990,7 +2991,7 @@ sal_Bool SAL_CALL component_writeInfo( } catch (InvalidRegistryException &) { - OSL_ENSHURE( sal_False, "### InvalidRegistryException!" ); + OSL_ENSURE( sal_False, "### InvalidRegistryException!" ); } } return sal_False; diff --git a/stoc/source/invocation/invocation.cxx b/stoc/source/invocation/invocation.cxx index 1953fa10b069..99b6bda88bf2 100644 --- a/stoc/source/invocation/invocation.cxx +++ b/stoc/source/invocation/invocation.cxx @@ -2,9 +2,9 @@ * * $RCSfile: invocation.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: dbo $ $Date: 2000-12-12 09:01:16 $ + * last change: $Author: jl $ $Date: 2001-03-12 15:34:04 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1266,7 +1266,7 @@ sal_Bool SAL_CALL component_writeInfo( } catch (InvalidRegistryException &) { - OSL_ENSHURE( sal_False, "### InvalidRegistryException!" ); + OSL_ENSURE( sal_False, "### InvalidRegistryException!" ); } } return sal_False; diff --git a/stoc/source/invocation_adapterfactory/iafactory.cxx b/stoc/source/invocation_adapterfactory/iafactory.cxx index 91e7fb0bd36e..d28a271f54aa 100644 --- a/stoc/source/invocation_adapterfactory/iafactory.cxx +++ b/stoc/source/invocation_adapterfactory/iafactory.cxx @@ -2,9 +2,9 @@ * * $RCSfile: iafactory.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: dbo $ $Date: 2000-10-06 14:25:14 $ + * last change: $Author: jl $ $Date: 2001-03-12 15:34:20 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -389,7 +389,7 @@ void AdapterImpl::invoke( TYPELIB_DANGER_GET( &pShortSeqTD, rSeqShortType.getTypeLibType() ); // write changed out params - OSL_ENSHURE( pOutParams->nElements == pOutIndices->nElements, "### out params lens differ!" ); + OSL_ENSURE( pOutParams->nElements == pOutIndices->nElements, "### out params lens differ!" ); if (pOutParams->nElements == pOutIndices->nElements) { sal_Int16 * pIndices = (sal_Int16 *)pOutIndices->elements; @@ -399,7 +399,7 @@ void AdapterImpl::invoke( sal_Int32 nIndex = pIndices[nPos]; typelib_TypeDescription * pTD = 0; TYPELIB_DANGER_GET( &pTD, pFormalParams[nIndex].pTypeRef ); - OSL_ENSHURE( nIndex < nParams, "### illegal index!" ); + OSL_ENSURE( nIndex < nParams, "### illegal index!" ); if (! pFormalParams[nIndex].bIn) // is pure out param uno_constructData( pArgs[nIndex], pTD ); if (! coerce_assign( pArgs[nIndex], pTD, &pOut[nPos] )) // if fail @@ -413,7 +413,7 @@ void AdapterImpl::invoke( sal_Int32 nIndex = pIndices[n]; pTD = 0; TYPELIB_DANGER_GET( &pTD, pFormalParams[nIndex].pTypeRef ); - OSL_ENSHURE( nIndex < nParams, "### illegal index!" ); + OSL_ENSURE( nIndex < nParams, "### illegal index!" ); uno_destructData( pArgs[nIndex], pTD, 0 ); TYPELIB_DANGER_RELEASE( pTD ); } @@ -613,7 +613,7 @@ FactoryImpl::FactoryImpl() _aUno2Cpp = Mapping( aUnoEnvTypeName, aCppEnvTypeName ); _aCpp2Uno = Mapping( aCppEnvTypeName, aUnoEnvTypeName ); - OSL_ENSHURE( _aUno2Cpp.is() && _aCpp2Uno.is(), "### no uno / c++ mappings!" ); + OSL_ENSURE( _aUno2Cpp.is() && _aCpp2Uno.is(), "### no uno / c++ mappings!" ); } // XInvocationAdapterFactory @@ -719,7 +719,7 @@ sal_Bool SAL_CALL component_writeInfo( } catch (InvalidRegistryException &) { - OSL_ENSHURE( sal_False, "### InvalidRegistryException!" ); + OSL_ENSURE( sal_False, "### InvalidRegistryException!" ); } } return sal_False; diff --git a/stoc/source/javaloader/javaloader.cxx b/stoc/source/javaloader/javaloader.cxx index 2881b24a12ee..ee1bbcc1f1e2 100644 --- a/stoc/source/javaloader/javaloader.cxx +++ b/stoc/source/javaloader/javaloader.cxx @@ -2,9 +2,9 @@ * * $RCSfile: javaloader.cxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: kr $ $Date: 2001-02-19 10:15:30 $ + * last change: $Author: jl $ $Date: 2001-03-12 15:34:53 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -347,7 +347,7 @@ extern "C" bRes = sal_True; } catch (InvalidRegistryException &) { - OSL_ENSHURE( sal_False, "### InvalidRegistryException!" ); + OSL_ENSURE( sal_False, "### InvalidRegistryException!" ); } } diff --git a/stoc/source/javavm/javavm.cxx b/stoc/source/javavm/javavm.cxx index d14610ca6798..f4d4e72011e0 100644 --- a/stoc/source/javavm/javavm.cxx +++ b/stoc/source/javavm/javavm.cxx @@ -2,9 +2,9 @@ * * $RCSfile: javavm.cxx,v $ * - * $Revision: 1.8 $ + * $Revision: 1.9 $ * - * last change: $Author: pluby $ $Date: 2001-03-09 04:35:21 $ + * last change: $Author: jl $ $Date: 2001-03-12 15:35:12 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -71,7 +71,7 @@ #include <vos/module.hxx> #include <vos/thread.hxx> #include <vos/conditn.hxx> -#include <vos/profile.hxx> +//#include <vos/profile.hxx> #include <uno/environment.h> @@ -750,7 +750,7 @@ extern "C" { return sal_True; } catch (InvalidRegistryException &) { - OSL_ENSHURE( sal_False, "### InvalidRegistryException!" ); + OSL_ENSURE( sal_False, "### InvalidRegistryException!" ); } } return sal_False; diff --git a/stoc/source/loader/dllcomponentloader.cxx b/stoc/source/loader/dllcomponentloader.cxx index 1e99ca627da3..d4cd95072222 100644 --- a/stoc/source/loader/dllcomponentloader.cxx +++ b/stoc/source/loader/dllcomponentloader.cxx @@ -2,9 +2,9 @@ * * $RCSfile: dllcomponentloader.cxx,v $ * - * $Revision: 1.9 $ + * $Revision: 1.10 $ * - * last change: $Author: dbo $ $Date: 2000-12-19 15:49:47 $ + * last change: $Author: jl $ $Date: 2001-03-12 15:35:30 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -291,7 +291,7 @@ sal_Bool SAL_CALL component_writeInfo( } catch (InvalidRegistryException &) { - OSL_ENSHURE( sal_False, "### InvalidRegistryException!" ); + OSL_ENSURE( sal_False, "### InvalidRegistryException!" ); } } return sal_False; diff --git a/stoc/source/namingservice/namingservice.cxx b/stoc/source/namingservice/namingservice.cxx index eed89f84af32..98914012f85f 100644 --- a/stoc/source/namingservice/namingservice.cxx +++ b/stoc/source/namingservice/namingservice.cxx @@ -2,9 +2,9 @@ * * $RCSfile: namingservice.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: svesik $ $Date: 2000-11-23 02:15:58 $ + * last change: $Author: jl $ $Date: 2001-03-12 15:36:04 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -269,7 +269,7 @@ sal_Bool SAL_CALL component_writeInfo( } catch (InvalidRegistryException &) { - OSL_ENSHURE( sal_False, "### InvalidRegistryException!" ); + OSL_ENSURE( sal_False, "### InvalidRegistryException!" ); } } return sal_False; diff --git a/stoc/source/proxy_factory/proxyfac.cxx b/stoc/source/proxy_factory/proxyfac.cxx index 24580516efed..51cfcf100d10 100644 --- a/stoc/source/proxy_factory/proxyfac.cxx +++ b/stoc/source/proxy_factory/proxyfac.cxx @@ -2,9 +2,9 @@ * * $RCSfile: proxyfac.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: armin $ $Date: 2001-03-08 09:40:04 $ + * last change: $Author: jl $ $Date: 2001-03-12 15:36:16 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -120,7 +120,7 @@ static inline uno_Interface * uno_queryInterface( (*((uno_Interface *)pUnoI)->pDispatcher)( (uno_Interface *)pUnoI, pMTqueryInterface, &aRetI, pArgs, &pExc ); - OSL_ENSHURE( !pExc, "### Exception occured during queryInterface()!" ); + OSL_ENSURE( !pExc, "### Exception occured during queryInterface()!" ); if (pExc) // cleanup exception { uno_any_destruct( pExc, 0 ); @@ -246,7 +246,7 @@ inline ProxyRoot::ProxyRoot( FactoryImpl * pFactory_, const Reference< XInterfac { pFactory->acquire(); pFactory->aCpp2Uno.mapInterface( (void **)&pTarget, xTarget_.get(), ::getCppuType( &xTarget_ ) ); - OSL_ENSHURE( pTarget, "### mapping interface failed!" ); + OSL_ENSURE( pTarget, "### mapping interface failed!" ); aInterfaces.reserve( 8 ); } //__________________________________________________________________________________________________ @@ -319,7 +319,7 @@ Any ProxyRoot::queryAggregation( const Type & rType ) Reference< XInterface > xRet; pFactory->aUno2Cpp.mapInterface( (void **)&xRet, (uno_Interface *)p, pTypeDescr ); - OSL_ENSHURE( xRet.is(), "### mapping interface failed!" ); + OSL_ENSURE( xRet.is(), "### mapping interface failed!" ); aInterfaces.push_back( p ); aRet.setValue( &xRet, (typelib_TypeDescription *)pTypeDescr ); } @@ -345,8 +345,8 @@ FactoryImpl::FactoryImpl() , aCpp2Uno( OUString( RTL_CONSTASCII_USTRINGPARAM(CPPU_CURRENT_LANGUAGE_BINDING_NAME) ), OUString( RTL_CONSTASCII_USTRINGPARAM(UNO_LB_UNO) ) ) { - OSL_ENSHURE( aUno2Cpp.is(), "### cannot get bridge uno <-> C++!" ); - OSL_ENSHURE( aCpp2Uno.is(), "### cannot get bridge C++ <-> uno!" ); + OSL_ENSURE( aUno2Cpp.is(), "### cannot get bridge uno <-> C++!" ); + OSL_ENSURE( aCpp2Uno.is(), "### cannot get bridge C++ <-> uno!" ); } // XProxyFactory @@ -427,7 +427,7 @@ sal_Bool SAL_CALL component_writeInfo( } catch (InvalidRegistryException &) { - OSL_ENSHURE( sal_False, "### InvalidRegistryException!" ); + OSL_ENSURE( sal_False, "### InvalidRegistryException!" ); } } return sal_False; diff --git a/stoc/source/registry_tdprovider/base.hxx b/stoc/source/registry_tdprovider/base.hxx index ef30b7f872fa..e987a404d98c 100644 --- a/stoc/source/registry_tdprovider/base.hxx +++ b/stoc/source/registry_tdprovider/base.hxx @@ -2,9 +2,9 @@ * * $RCSfile: base.hxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: dbo $ $Date: 2001-03-07 14:48:04 $ + * last change: $Author: jl $ $Date: 2001-03-12 15:36:44 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -116,7 +116,7 @@ inline sal_Int32 getRTValueAsInt32( const RTConstValue & rVal ) case RT_TYPE_UINT32: return rVal.m_value.aULong; } - OSL_ENSHURE( sal_False, "### unexpected value type!" ); + OSL_ENSURE( sal_False, "### unexpected value type!" ); return 0; } //-------------------------------------------------------------------------------------------------- @@ -146,7 +146,7 @@ inline Any getRTValue( const RTConstValue & rVal ) return Any( &aStr, ::getCppuType( (const OUString *)0 ) ); } } - OSL_ENSHURE( sal_False, "### unexpected RTValue!" ); + OSL_ENSURE( sal_False, "### unexpected RTValue!" ); return Any(); } diff --git a/stoc/source/registry_tdprovider/tdcomp.cxx b/stoc/source/registry_tdprovider/tdcomp.cxx index fb8c6ee67492..1bc63480ab5a 100644 --- a/stoc/source/registry_tdprovider/tdcomp.cxx +++ b/stoc/source/registry_tdprovider/tdcomp.cxx @@ -2,9 +2,9 @@ * * $RCSfile: tdcomp.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: dbo $ $Date: 2001-03-07 14:48:04 $ + * last change: $Author: jl $ $Date: 2001-03-12 15:36:44 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -138,7 +138,7 @@ Sequence< Reference< XTypeDescription > > CompoundTypeDescriptionImpl::getMember catch (NoSuchElementException &) { } - OSL_ENSHURE( pMembers[nFields].is(), "### compound member unknown!" ); + OSL_ENSURE( pMembers[nFields].is(), "### compound member unknown!" ); } _pMembers = pTempMembers; diff --git a/stoc/source/registry_tdprovider/tdiface.cxx b/stoc/source/registry_tdprovider/tdiface.cxx index dbf9a2304fb7..3711ec795548 100644 --- a/stoc/source/registry_tdprovider/tdiface.cxx +++ b/stoc/source/registry_tdprovider/tdiface.cxx @@ -2,9 +2,9 @@ * * $RCSfile: tdiface.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: dbo $ $Date: 2001-03-07 14:48:04 $ + * last change: $Author: jl $ $Date: 2001-03-12 15:36:44 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -354,7 +354,7 @@ Sequence<Reference<XTypeDescription > > InterfaceMethodImpl::getExceptions() catch (NoSuchElementException &) { } - OSL_ENSHURE( pExc[nExc].is(), "### exception type unknown!" ); + OSL_ENSURE( pExc[nExc].is(), "### exception type unknown!" ); } _pExceptions = pExceptions; diff --git a/stoc/source/registry_tdprovider/tdprovider.cxx b/stoc/source/registry_tdprovider/tdprovider.cxx index 316fcd18db97..0fe6596ea35f 100644 --- a/stoc/source/registry_tdprovider/tdprovider.cxx +++ b/stoc/source/registry_tdprovider/tdprovider.cxx @@ -2,9 +2,9 @@ * * $RCSfile: tdprovider.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: dbo $ $Date: 2001-03-07 14:48:04 $ + * last change: $Author: jl $ $Date: 2001-03-12 15:36:44 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -160,7 +160,7 @@ ProviderImpl::ProviderImpl( const Reference< XMultiServiceFactory > & xSMgr ) , _xSMgr( xSMgr ) , _xTDMgr( _xSMgr->createInstance( OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.reflection.TypeDescriptionManager") ) ), UNO_QUERY ) { - OSL_ENSHURE( _xTDMgr.is(), "### cannot get service instance \"com.sun.star.reflection.TypeDescriptionManager\"!" ); + OSL_ENSURE( _xTDMgr.is(), "### cannot get service instance \"com.sun.star.reflection.TypeDescriptionManager\"!" ); } //__________________________________________________________________________________________________ ProviderImpl::~ProviderImpl() @@ -495,7 +495,7 @@ sal_Bool SAL_CALL component_writeInfo( } catch (InvalidRegistryException &) { - OSL_ENSHURE( sal_False, "### InvalidRegistryException!" ); + OSL_ENSURE( sal_False, "### InvalidRegistryException!" ); } } return sal_False; diff --git a/stoc/source/servicemanager/servicemanager.cxx b/stoc/source/servicemanager/servicemanager.cxx index 6f612c1329f8..3d53ce16e9df 100644 --- a/stoc/source/servicemanager/servicemanager.cxx +++ b/stoc/source/servicemanager/servicemanager.cxx @@ -2,9 +2,9 @@ * * $RCSfile: servicemanager.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: armin $ $Date: 2001-03-08 09:40:46 $ + * last change: $Author: jl $ $Date: 2001-03-12 15:37:14 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -329,11 +329,11 @@ void OServiceManager_Listener::disposing(const EventObject & rEvt ) } catch( const IllegalArgumentException & ) { - OSL_ENSHURE( sal_False, "IllegalArgumentException catched" ); + OSL_ENSURE( sal_False, "IllegalArgumentException catched" ); } catch( const NoSuchElementException & ) { - OSL_ENSHURE( sal_False, "NoSuchElementException catched" ); + OSL_ENSURE( sal_False, "NoSuchElementException catched" ); } } } @@ -1382,7 +1382,7 @@ sal_Bool SAL_CALL component_writeInfo( } catch (InvalidRegistryException &) { - OSL_ENSHURE( sal_False, "### InvalidRegistryException!" ); + OSL_ENSURE( sal_False, "### InvalidRegistryException!" ); } } return sal_False; diff --git a/stoc/source/simpleregistry/simpleregistry.cxx b/stoc/source/simpleregistry/simpleregistry.cxx index d729706bea34..23607a40bef9 100644 --- a/stoc/source/simpleregistry/simpleregistry.cxx +++ b/stoc/source/simpleregistry/simpleregistry.cxx @@ -2,9 +2,9 @@ * * $RCSfile: simpleregistry.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: jsc $ $Date: 2001-02-19 17:44:20 $ + * last change: $Author: jl $ $Date: 2001-03-12 15:37:29 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1231,7 +1231,7 @@ sal_Bool SAL_CALL component_writeInfo( } catch (InvalidRegistryException &) { - OSL_ENSHURE( sal_False, "### InvalidRegistryException!" ); + OSL_ENSURE( sal_False, "### InvalidRegistryException!" ); } } return sal_False; diff --git a/stoc/source/tdmanager/tdmgr.cxx b/stoc/source/tdmanager/tdmgr.cxx index 1a253aaf3d23..3b691d3c1ef0 100644 --- a/stoc/source/tdmanager/tdmgr.cxx +++ b/stoc/source/tdmanager/tdmgr.cxx @@ -2,9 +2,9 @@ * * $RCSfile: tdmgr.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: armin $ $Date: 2001-03-08 09:42:13 $ + * last change: $Author: jl $ $Date: 2001-03-12 15:37:48 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -253,7 +253,7 @@ void EventListenerImpl::disposing( const EventObject & rEvt ) if (rEvt.Source == _pMgr->_xSMgr) { Reference< XComponent > xComp( _pMgr->_xSMgr, UNO_QUERY ); - OSL_ENSHURE( xComp.is(), "### service manager must implement XComponent!" ); + OSL_ENSURE( xComp.is(), "### service manager must implement XComponent!" ); xComp->removeEventListener( this ); _pMgr->_bCaching = sal_False; _pMgr->_aElements.clear(); @@ -314,7 +314,7 @@ extern "C" static void SAL_CALL tdmgr_typelib_callback( void * pContext, typelib_TypeDescription ** ppRet, rtl_uString * pTypeName ) { - OSL_ENSHURE( pContext && ppRet && pTypeName, "### null ptr!" ); + OSL_ENSURE( pContext && ppRet && pTypeName, "### null ptr!" ); if (ppRet) { if (*ppRet) @@ -363,13 +363,13 @@ ManagerImpl::ManagerImpl( const Reference< XMultiServiceFactory > & xSMgr ) // listen to service manager vanishing... Reference< XComponent > xComp( _xSMgr, UNO_QUERY ); - OSL_ENSHURE( xComp.is(), "### service manager must implement XComponent!" ); + OSL_ENSURE( xComp.is(), "### service manager must implement XComponent!" ); xComp->addEventListener( &_aEventListener ); } //__________________________________________________________________________________________________ ManagerImpl::~ManagerImpl() { - OSL_ENSHURE( _aProviders.size() == 0, "### still providers left!" ); + OSL_ENSURE( _aProviders.size() == 0, "### still providers left!" ); TRACE( "> TypeDescriptionManager shut down. <\n" ); MutexGuard aGuard( _aComponentMutex ); @@ -381,11 +381,11 @@ inline void ManagerImpl::initProviders() { // looking up service manager for all known provider implementations Reference< XContentEnumerationAccess > xEnumAccess( _xSMgr, UNO_QUERY ); - OSL_ENSHURE( xEnumAccess.is(), "### service manager must export XContentEnumerationAccess!" ); + OSL_ENSURE( xEnumAccess.is(), "### service manager must export XContentEnumerationAccess!" ); Reference< XEnumeration > xEnum( xEnumAccess->createContentEnumeration( OUString( RTL_CONSTASCII_USTRINGPARAM("com.sun.star.reflection.TypeDescriptionProvider") ) ) ); - OSL_ENSHURE( xEnum.is(), "### no TypeDescriptionProviders available!" ); + OSL_ENSURE( xEnum.is(), "### no TypeDescriptionProviders available!" ); if (xEnum.is()) { while (xEnum->hasMoreElements()) @@ -400,7 +400,7 @@ inline void ManagerImpl::initProviders() { Reference< XSingleServiceFactory > xFactory( *(const Reference< XInterface > *)aAny.getValue(), UNO_QUERY ); - OSL_ENSHURE( xFactory.is(), "### the thing that should not be!" ); + OSL_ENSURE( xFactory.is(), "### the thing that should not be!" ); Reference< XHierarchicalNameAccess > xHA( xFactory->createInstance(), UNO_QUERY ); if (xHA.is()) @@ -420,7 +420,7 @@ inline void ManagerImpl::initProviders() } } } - OSL_ENSHURE( !_aProviders.empty(), "### no typedescription providers found!" ); + OSL_ENSURE( !_aProviders.empty(), "### no typedescription providers found!" ); } // XServiceInfo @@ -798,7 +798,7 @@ sal_Bool SAL_CALL component_writeInfo( } catch (InvalidRegistryException &) { - OSL_ENSHURE( sal_False, "### InvalidRegistryException!" ); + OSL_ENSURE( sal_False, "### InvalidRegistryException!" ); } } return sal_False; diff --git a/stoc/source/typeconv/convert.cxx b/stoc/source/typeconv/convert.cxx index 901af16a8a8d..aa286bdeaa86 100644 --- a/stoc/source/typeconv/convert.cxx +++ b/stoc/source/typeconv/convert.cxx @@ -2,9 +2,9 @@ * * $RCSfile: convert.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: fs $ $Date: 2001-02-13 15:33:53 $ + * last change: $Author: jl $ $Date: 2001-03-12 15:38:06 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -989,7 +989,7 @@ sal_Bool SAL_CALL component_writeInfo( } catch (InvalidRegistryException &) { - OSL_ENSHURE( sal_False, "### InvalidRegistryException!" ); + OSL_ENSURE( sal_False, "### InvalidRegistryException!" ); } } return sal_False; |