summaryrefslogtreecommitdiff
path: root/stoc
diff options
context:
space:
mode:
authorAlexander Wilms <f.alexander.wilms@gmail.com>2014-02-22 21:20:15 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-02-23 03:38:49 +0000
commit0ce0c369aa8880dff9fe874ba85ec6f52ee37ddf (patch)
tree5024cba9f9ea5e3b23ea26025323f6aef39488d0 /stoc
parentb81ac16e65b311d6e43c05c22c65d2040c9d7e04 (diff)
Remove unneccessary comments
Change-Id: I939160ae72fecbe3d4a60ce755730bd4c38497fb Reviewed-on: https://gerrit.libreoffice.org/8182 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'stoc')
-rw-r--r--stoc/source/corereflection/crarray.cxx24
-rw-r--r--stoc/source/corereflection/crbase.cxx46
-rw-r--r--stoc/source/corereflection/crcomp.cxx34
-rw-r--r--stoc/source/corereflection/crefl.cxx42
-rw-r--r--stoc/source/corereflection/crenum.cxx34
-rw-r--r--stoc/source/corereflection/criface.cxx72
-rw-r--r--stoc/source/implementationregistration/implreg.cxx4
-rw-r--r--stoc/source/inspect/introspection.cxx6
-rw-r--r--stoc/source/invocation/invocation.cxx26
-rw-r--r--stoc/source/invocation_adapterfactory/iafactory.cxx46
-rw-r--r--stoc/source/proxy_factory/proxyfac.cxx26
-rw-r--r--stoc/source/security/access_controller.cxx62
-rw-r--r--stoc/source/security/file_policy.cxx38
-rw-r--r--stoc/source/security/permissions.cxx42
-rw-r--r--stoc/source/servicemanager/servicemanager.cxx20
-rw-r--r--stoc/source/typeconv/convert.cxx12
-rw-r--r--stoc/test/testiadapter.cxx22
-rw-r--r--stoc/test/testproxyfac.cxx2
18 files changed, 279 insertions, 279 deletions
diff --git a/stoc/source/corereflection/crarray.cxx b/stoc/source/corereflection/crarray.cxx
index e329f63470d9..374bc43d4a1b 100644
--- a/stoc/source/corereflection/crarray.cxx
+++ b/stoc/source/corereflection/crarray.cxx
@@ -27,26 +27,26 @@ namespace stoc_corefl
{
// XInterface
-//__________________________________________________________________________________________________
+
Any ArrayIdlClassImpl::queryInterface( const Type & rType )
throw(::com::sun::star::uno::RuntimeException)
{
Any aRet( ::cppu::queryInterface( rType, static_cast< XIdlArray * >( this ) ) );
return (aRet.hasValue() ? aRet : IdlClassImpl::queryInterface( rType ));
}
-//__________________________________________________________________________________________________
+
void ArrayIdlClassImpl::acquire() throw()
{
IdlClassImpl::acquire();
}
-//__________________________________________________________________________________________________
+
void ArrayIdlClassImpl::release() throw()
{
IdlClassImpl::release();
}
// XTypeProvider
-//__________________________________________________________________________________________________
+
Sequence< Type > ArrayIdlClassImpl::getTypes()
throw (::com::sun::star::uno::RuntimeException)
{
@@ -64,7 +64,7 @@ Sequence< Type > ArrayIdlClassImpl::getTypes()
}
return s_pTypes->getTypes();
}
-//__________________________________________________________________________________________________
+
Sequence< sal_Int8 > ArrayIdlClassImpl::getImplementationId()
throw (::com::sun::star::uno::RuntimeException)
{
@@ -82,7 +82,7 @@ Sequence< sal_Int8 > ArrayIdlClassImpl::getImplementationId()
}
// XIdlArray
-//__________________________________________________________________________________________________
+
void ArrayIdlClassImpl::realloc( Any & rArray, sal_Int32 nLen )
throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException)
{
@@ -107,7 +107,7 @@ void ArrayIdlClassImpl::realloc( Any & rArray, sal_Int32 nLen )
reinterpret_cast< uno_ReleaseFunc >(cpp_release) );
rArray.pData = ppSeq;
}
-//__________________________________________________________________________________________________
+
sal_Int32 ArrayIdlClassImpl::getLen( const Any & rArray )
throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException)
{
@@ -121,7 +121,7 @@ sal_Int32 ArrayIdlClassImpl::getLen( const Any & rArray )
return (*(uno_Sequence **)rArray.getValue())->nElements;
}
-//__________________________________________________________________________________________________
+
Any ArrayIdlClassImpl::get( const Any & rArray, sal_Int32 nIndex )
throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::ArrayIndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException)
{
@@ -152,7 +152,7 @@ Any ArrayIdlClassImpl::get( const Any & rArray, sal_Int32 nIndex )
return aRet;
}
-//__________________________________________________________________________________________________
+
void ArrayIdlClassImpl::set( Any & rArray, sal_Int32 nIndex, const Any & rNewValue )
throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::ArrayIndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException)
{
@@ -195,7 +195,7 @@ void ArrayIdlClassImpl::set( Any & rArray, sal_Int32 nIndex, const Any & rNewVal
}
// ArrayIdlClassImpl
-//__________________________________________________________________________________________________
+
sal_Bool ArrayIdlClassImpl::isAssignableFrom( const Reference< XIdlClass > & xType )
throw(::com::sun::star::uno::RuntimeException)
{
@@ -204,13 +204,13 @@ sal_Bool ArrayIdlClassImpl::isAssignableFrom( const Reference< XIdlClass > & xTy
(xType->getTypeClass() == getTypeClass() && // must be sequence|array
getComponentType()->isAssignableFrom( xType->getComponentType() ))));
}
-//__________________________________________________________________________________________________
+
Reference< XIdlClass > ArrayIdlClassImpl::getComponentType()
throw(::com::sun::star::uno::RuntimeException)
{
return getReflection()->forType( getTypeDescr()->pType );
}
-//__________________________________________________________________________________________________
+
Reference< XIdlArray > ArrayIdlClassImpl::getArray()
throw(::com::sun::star::uno::RuntimeException)
{
diff --git a/stoc/source/corereflection/crbase.cxx b/stoc/source/corereflection/crbase.cxx
index b598a0f488e4..0e3dc6aa771b 100644
--- a/stoc/source/corereflection/crbase.cxx
+++ b/stoc/source/corereflection/crbase.cxx
@@ -29,7 +29,7 @@ namespace stoc_corefl
ClassNameList g_aClassNames;
#endif
-//--------------------------------------------------------------------------------------------------
+
Mutex & getMutexAccess()
{
static Mutex * s_pMutex = 0;
@@ -45,7 +45,7 @@ Mutex & getMutexAccess()
return *s_pMutex;
}
-//__________________________________________________________________________________________________
+
IdlClassImpl::IdlClassImpl( IdlReflectionServiceImpl * pReflection,
const OUString & rName, typelib_TypeClass eTypeClass,
typelib_TypeDescription * pTypeDescr )
@@ -69,7 +69,7 @@ IdlClassImpl::IdlClassImpl( IdlReflectionServiceImpl * pReflection,
g_aClassNames.push_front( _aName );
#endif
}
-//__________________________________________________________________________________________________
+
IdlClassImpl::~IdlClassImpl()
{
if (_pTypeDescr)
@@ -85,19 +85,19 @@ IdlClassImpl::~IdlClassImpl()
}
// XIdlClassImpl default implementation
-//__________________________________________________________________________________________________
+
TypeClass IdlClassImpl::getTypeClass()
throw(::com::sun::star::uno::RuntimeException)
{
return _eTypeClass;
}
-//__________________________________________________________________________________________________
+
OUString IdlClassImpl::getName()
throw(::com::sun::star::uno::RuntimeException)
{
return _aName;
}
-//__________________________________________________________________________________________________
+
sal_Bool IdlClassImpl::equals( const Reference< XIdlClass >& xType )
throw(::com::sun::star::uno::RuntimeException)
{
@@ -120,7 +120,7 @@ static const sal_Bool s_aAssignableFromTab[11][11] =
/* TypeClass_FLOAT */ { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0 },
/* TypeClass_DOUBLE */ { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1 }
};
-//__________________________________________________________________________________________________
+
sal_Bool IdlClassImpl::isAssignableFrom( const Reference< XIdlClass > & xType )
throw(::com::sun::star::uno::RuntimeException)
{
@@ -140,7 +140,7 @@ sal_Bool IdlClassImpl::isAssignableFrom( const Reference< XIdlClass > & xType )
}
return sal_False;
}
-//__________________________________________________________________________________________________
+
void IdlClassImpl::createObject( Any & rObj )
throw(::com::sun::star::uno::RuntimeException)
{
@@ -150,21 +150,21 @@ void IdlClassImpl::createObject( Any & rObj )
}
// what TODO ????
-//__________________________________________________________________________________________________
+
Sequence< Reference< XIdlClass > > IdlClassImpl::getClasses()
throw(::com::sun::star::uno::RuntimeException)
{
OSL_FAIL( "### unexpected use!" );
return Sequence< Reference< XIdlClass > >();
}
-//__________________________________________________________________________________________________
+
Reference< XIdlClass > IdlClassImpl::getClass( const OUString & )
throw(::com::sun::star::uno::RuntimeException)
{
OSL_FAIL( "### unexpected use!" );
return Reference< XIdlClass >();
}
-//__________________________________________________________________________________________________
+
Sequence< Reference< XIdlClass > > IdlClassImpl::getInterfaces()
throw(::com::sun::star::uno::RuntimeException)
{
@@ -173,51 +173,51 @@ Sequence< Reference< XIdlClass > > IdlClassImpl::getInterfaces()
}
// structs, interfaces
-//__________________________________________________________________________________________________
+
Sequence< Reference< XIdlClass > > IdlClassImpl::getSuperclasses() throw(::com::sun::star::uno::RuntimeException)
{
return Sequence< Reference< XIdlClass > >();
}
// structs
-//__________________________________________________________________________________________________
+
Reference< XIdlField > IdlClassImpl::getField( const OUString & )
throw(::com::sun::star::uno::RuntimeException)
{
return Reference< XIdlField >();
}
-//__________________________________________________________________________________________________
+
Sequence< Reference< XIdlField > > IdlClassImpl::getFields()
throw(::com::sun::star::uno::RuntimeException)
{
return Sequence< Reference< XIdlField > >();
}
// interfaces
-//__________________________________________________________________________________________________
+
Uik IdlClassImpl::getUik()
throw(::com::sun::star::uno::RuntimeException)
{
return Uik();
}
-//__________________________________________________________________________________________________
+
Reference< XIdlMethod > IdlClassImpl::getMethod( const OUString & )
throw(::com::sun::star::uno::RuntimeException)
{
return Reference< XIdlMethod >();
}
-//__________________________________________________________________________________________________
+
Sequence< Reference< XIdlMethod > > IdlClassImpl::getMethods()
throw(::com::sun::star::uno::RuntimeException)
{
return Sequence< Reference< XIdlMethod > >();
}
// array
-//__________________________________________________________________________________________________
+
Reference< XIdlClass > IdlClassImpl::getComponentType()
throw(::com::sun::star::uno::RuntimeException)
{
return Reference< XIdlClass >();
}
-//__________________________________________________________________________________________________
+
Reference< XIdlArray > IdlClassImpl::getArray()
throw(::com::sun::star::uno::RuntimeException)
{
@@ -230,7 +230,7 @@ Reference< XIdlArray > IdlClassImpl::getArray()
//##################################################################################################
-//__________________________________________________________________________________________________
+
IdlMemberImpl::IdlMemberImpl( IdlReflectionServiceImpl * pReflection, const OUString & rName,
typelib_TypeDescription * pTypeDescr,
typelib_TypeDescription * pDeclTypeDescr )
@@ -247,7 +247,7 @@ IdlMemberImpl::IdlMemberImpl( IdlReflectionServiceImpl * pReflection, const OUSt
if (! _pDeclTypeDescr->bComplete)
typelib_typedescription_complete( &_pDeclTypeDescr );
}
-//__________________________________________________________________________________________________
+
IdlMemberImpl::~IdlMemberImpl()
{
typelib_typedescription_release( _pDeclTypeDescr );
@@ -256,7 +256,7 @@ IdlMemberImpl::~IdlMemberImpl()
}
// XIdlMember
-//__________________________________________________________________________________________________
+
Reference< XIdlClass > IdlMemberImpl::getDeclaringClass()
throw(::com::sun::star::uno::RuntimeException)
{
@@ -269,7 +269,7 @@ Reference< XIdlClass > IdlMemberImpl::getDeclaringClass()
}
return _xDeclClass;
}
-//__________________________________________________________________________________________________
+
OUString IdlMemberImpl::getName()
throw(::com::sun::star::uno::RuntimeException)
{
diff --git a/stoc/source/corereflection/crcomp.cxx b/stoc/source/corereflection/crcomp.cxx
index 5835840b5f41..c9f2deee54f9 100644
--- a/stoc/source/corereflection/crcomp.cxx
+++ b/stoc/source/corereflection/crcomp.cxx
@@ -67,7 +67,7 @@ public:
};
// XInterface
-//__________________________________________________________________________________________________
+
Any IdlCompFieldImpl::queryInterface( const Type & rType )
throw(::com::sun::star::uno::RuntimeException)
{
@@ -76,19 +76,19 @@ Any IdlCompFieldImpl::queryInterface( const Type & rType )
static_cast< XIdlField2 * >( this ) ) );
return (aRet.hasValue() ? aRet : IdlMemberImpl::queryInterface( rType ));
}
-//__________________________________________________________________________________________________
+
void IdlCompFieldImpl::acquire() throw()
{
IdlMemberImpl::acquire();
}
-//__________________________________________________________________________________________________
+
void IdlCompFieldImpl::release() throw()
{
IdlMemberImpl::release();
}
// XTypeProvider
-//__________________________________________________________________________________________________
+
Sequence< Type > IdlCompFieldImpl::getTypes()
throw (::com::sun::star::uno::RuntimeException)
{
@@ -107,7 +107,7 @@ Sequence< Type > IdlCompFieldImpl::getTypes()
}
return s_pTypes->getTypes();
}
-//__________________________________________________________________________________________________
+
Sequence< sal_Int8 > IdlCompFieldImpl::getImplementationId()
throw (::com::sun::star::uno::RuntimeException)
{
@@ -125,7 +125,7 @@ Sequence< sal_Int8 > IdlCompFieldImpl::getImplementationId()
}
// XIdlMember
-//__________________________________________________________________________________________________
+
Reference< XIdlClass > IdlCompFieldImpl::getDeclaringClass()
throw(::com::sun::star::uno::RuntimeException)
{
@@ -153,7 +153,7 @@ Reference< XIdlClass > IdlCompFieldImpl::getDeclaringClass()
}
return _xDeclClass;
}
-//__________________________________________________________________________________________________
+
OUString IdlCompFieldImpl::getName()
throw(::com::sun::star::uno::RuntimeException)
{
@@ -161,19 +161,19 @@ OUString IdlCompFieldImpl::getName()
}
// XIdlField
-//__________________________________________________________________________________________________
+
Reference< XIdlClass > IdlCompFieldImpl::getType()
throw(::com::sun::star::uno::RuntimeException)
{
return getReflection()->forType( getTypeDescr() );
}
-//__________________________________________________________________________________________________
+
FieldAccessMode IdlCompFieldImpl::getAccessMode()
throw(::com::sun::star::uno::RuntimeException)
{
return FieldAccessMode_READWRITE;
}
-//__________________________________________________________________________________________________
+
Any IdlCompFieldImpl::get( const Any & rObj )
throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException)
{
@@ -206,7 +206,7 @@ Any IdlCompFieldImpl::get( const Any & rObj )
OUString("illegal object given!"),
(XWeak *)(OWeakObject *)this, 0 );
}
-//__________________________________________________________________________________________________
+
void IdlCompFieldImpl::set( const Any & rObj, const Any & rValue )
throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IllegalAccessException, ::com::sun::star::uno::RuntimeException)
{
@@ -243,7 +243,7 @@ void IdlCompFieldImpl::set( const Any & rObj, const Any & rValue )
(XWeak *)(OWeakObject *)this, 0 );
}
-//__________________________________________________________________________________________________
+
void IdlCompFieldImpl::set( Any & rObj, const Any & rValue )
throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IllegalAccessException, ::com::sun::star::uno::RuntimeException)
{
@@ -285,13 +285,13 @@ void IdlCompFieldImpl::set( Any & rObj, const Any & rValue )
//##################################################################################################
-//__________________________________________________________________________________________________
+
CompoundIdlClassImpl::~CompoundIdlClassImpl()
{
delete _pFields;
}
-//__________________________________________________________________________________________________
+
sal_Bool CompoundIdlClassImpl::isAssignableFrom( const Reference< XIdlClass > & xType )
throw(::com::sun::star::uno::RuntimeException)
{
@@ -315,7 +315,7 @@ sal_Bool CompoundIdlClassImpl::isAssignableFrom( const Reference< XIdlClass > &
}
return sal_False;
}
-//__________________________________________________________________________________________________
+
Sequence< Reference< XIdlClass > > CompoundIdlClassImpl::getSuperclasses()
throw(::com::sun::star::uno::RuntimeException)
{
@@ -334,7 +334,7 @@ Sequence< Reference< XIdlClass > > CompoundIdlClassImpl::getSuperclasses()
else
return Sequence< Reference< XIdlClass > >();
}
-//__________________________________________________________________________________________________
+
Reference< XIdlField > CompoundIdlClassImpl::getField( const OUString & rName )
throw(::com::sun::star::uno::RuntimeException)
{
@@ -347,7 +347,7 @@ Reference< XIdlField > CompoundIdlClassImpl::getField( const OUString & rName )
else
return Reference< XIdlField >();
}
-//__________________________________________________________________________________________________
+
Sequence< Reference< XIdlField > > CompoundIdlClassImpl::getFields()
throw(::com::sun::star::uno::RuntimeException)
{
diff --git a/stoc/source/corereflection/crefl.cxx b/stoc/source/corereflection/crefl.cxx
index 1ba2ed44fb2d..3af166452254 100644
--- a/stoc/source/corereflection/crefl.cxx
+++ b/stoc/source/corereflection/crefl.cxx
@@ -56,7 +56,7 @@ static OUString core_getImplementationName()
{
return OUString(IMPLNAME);
}
-//__________________________________________________________________________________________________
+
IdlReflectionServiceImpl::IdlReflectionServiceImpl(
const Reference< XComponentContext > & xContext )
: OComponentHelper( _aComponentMutex )
@@ -67,11 +67,11 @@ IdlReflectionServiceImpl::IdlReflectionServiceImpl(
"/singletons/com.sun.star.reflection.theTypeDescriptionManager") ) >>= _xTDMgr;
OSL_ENSURE( _xTDMgr.is(), "### cannot get singleton \"TypeDescriptionManager\" from context!" );
}
-//__________________________________________________________________________________________________
+
IdlReflectionServiceImpl::~IdlReflectionServiceImpl() {}
// XInterface
-//__________________________________________________________________________________________________
+
Any IdlReflectionServiceImpl::queryInterface( const Type & rType )
throw(::com::sun::star::uno::RuntimeException)
{
@@ -83,19 +83,19 @@ Any IdlReflectionServiceImpl::queryInterface( const Type & rType )
return (aRet.hasValue() ? aRet : OComponentHelper::queryInterface( rType ));
}
-//__________________________________________________________________________________________________
+
void IdlReflectionServiceImpl::acquire() throw()
{
OComponentHelper::acquire();
}
-//__________________________________________________________________________________________________
+
void IdlReflectionServiceImpl::release() throw()
{
OComponentHelper::release();
}
// XTypeProvider
-//__________________________________________________________________________________________________
+
Sequence< Type > IdlReflectionServiceImpl::getTypes()
throw (::com::sun::star::uno::RuntimeException)
{
@@ -115,7 +115,7 @@ Sequence< Type > IdlReflectionServiceImpl::getTypes()
}
return s_pTypes->getTypes();
}
-//__________________________________________________________________________________________________
+
Sequence< sal_Int8 > IdlReflectionServiceImpl::getImplementationId()
throw (::com::sun::star::uno::RuntimeException)
{
@@ -133,7 +133,7 @@ Sequence< sal_Int8 > IdlReflectionServiceImpl::getImplementationId()
}
// XComponent
-//__________________________________________________________________________________________________
+
void IdlReflectionServiceImpl::dispose()
throw(::com::sun::star::uno::RuntimeException)
{
@@ -153,19 +153,19 @@ void IdlReflectionServiceImpl::dispose()
}
// XServiceInfo
-//__________________________________________________________________________________________________
+
OUString IdlReflectionServiceImpl::getImplementationName()
throw(::com::sun::star::uno::RuntimeException)
{
return core_getImplementationName();
}
-//__________________________________________________________________________________________________
+
sal_Bool IdlReflectionServiceImpl::supportsService( const OUString & rServiceName )
throw(::com::sun::star::uno::RuntimeException)
{
return cppu::supportsService(this, rServiceName);
}
-//__________________________________________________________________________________________________
+
Sequence< OUString > IdlReflectionServiceImpl::getSupportedServiceNames()
throw(::com::sun::star::uno::RuntimeException)
{
@@ -173,14 +173,14 @@ Sequence< OUString > IdlReflectionServiceImpl::getSupportedServiceNames()
}
// XIdlReflection
-//__________________________________________________________________________________________________
+
Reference< XIdlClass > IdlReflectionServiceImpl::getType( const Any & rObj )
throw(::com::sun::star::uno::RuntimeException)
{
return (rObj.hasValue() ? forType( rObj.getValueTypeRef() ) : Reference< XIdlClass >());
}
-//__________________________________________________________________________________________________
+
inline Reference< XIdlClass > IdlReflectionServiceImpl::constructClass(
typelib_TypeDescription * pTypeDescr )
{
@@ -230,7 +230,7 @@ inline Reference< XIdlClass > IdlReflectionServiceImpl::constructClass(
return Reference< XIdlClass >();
}
}
-//__________________________________________________________________________________________________
+
Reference< XIdlClass > IdlReflectionServiceImpl::forName( const OUString & rTypeName )
throw(::com::sun::star::uno::RuntimeException)
{
@@ -259,7 +259,7 @@ Reference< XIdlClass > IdlReflectionServiceImpl::forName( const OUString & rType
}
// XHierarchicalNameAccess
-//__________________________________________________________________________________________________
+
Any IdlReflectionServiceImpl::getByHierarchicalName( const OUString & rName )
throw(::com::sun::star::container::NoSuchElementException, ::com::sun::star::uno::RuntimeException)
{
@@ -313,7 +313,7 @@ Any IdlReflectionServiceImpl::getByHierarchicalName( const OUString & rName )
}
return aRet;
}
-//__________________________________________________________________________________________________
+
sal_Bool IdlReflectionServiceImpl::hasByHierarchicalName( const OUString & rName )
throw(::com::sun::star::uno::RuntimeException)
{
@@ -327,7 +327,7 @@ sal_Bool IdlReflectionServiceImpl::hasByHierarchicalName( const OUString & rName
return sal_False;
}
-//__________________________________________________________________________________________________
+
Reference< XIdlClass > IdlReflectionServiceImpl::forType( typelib_TypeDescription * pTypeDescr )
throw(::com::sun::star::uno::RuntimeException)
{
@@ -348,7 +348,7 @@ Reference< XIdlClass > IdlReflectionServiceImpl::forType( typelib_TypeDescriptio
return xRet;
}
-//__________________________________________________________________________________________________
+
Reference< XIdlClass > IdlReflectionServiceImpl::forType( typelib_TypeDescriptionReference * pRef )
throw(::com::sun::star::uno::RuntimeException)
{
@@ -365,7 +365,7 @@ Reference< XIdlClass > IdlReflectionServiceImpl::forType( typelib_TypeDescriptio
(XWeak *)(OWeakObject *)this );
}
-//__________________________________________________________________________________________________
+
const Mapping & IdlReflectionServiceImpl::getCpp2Uno()
throw(::com::sun::star::uno::RuntimeException)
{
@@ -388,7 +388,7 @@ const Mapping & IdlReflectionServiceImpl::getCpp2Uno()
}
return _aCpp2Uno;
}
-//__________________________________________________________________________________________________
+
const Mapping & IdlReflectionServiceImpl::getUno2Cpp()
throw(::com::sun::star::uno::RuntimeException)
{
@@ -411,7 +411,7 @@ const Mapping & IdlReflectionServiceImpl::getUno2Cpp()
}
return _aUno2Cpp;
}
-//__________________________________________________________________________________________________
+
uno_Interface * IdlReflectionServiceImpl::mapToUno(
const Any & rObj, typelib_InterfaceTypeDescription * pTo )
throw(::com::sun::star::uno::RuntimeException)
diff --git a/stoc/source/corereflection/crenum.cxx b/stoc/source/corereflection/crenum.cxx
index a2040639d5e7..32a28f96930a 100644
--- a/stoc/source/corereflection/crenum.cxx
+++ b/stoc/source/corereflection/crenum.cxx
@@ -59,13 +59,13 @@ public:
// XIdlField2: getType, getAccessMode and get are equal to XIdlField
virtual void SAL_CALL set( Any & rObj, const Any & rValue ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IllegalAccessException, ::com::sun::star::uno::RuntimeException);
};
-//__________________________________________________________________________________________________
+
IdlEnumFieldImpl::~IdlEnumFieldImpl()
{
}
// XInterface
-//__________________________________________________________________________________________________
+
Any IdlEnumFieldImpl::queryInterface( const Type & rType )
throw(::com::sun::star::uno::RuntimeException)
{
@@ -74,19 +74,19 @@ Any IdlEnumFieldImpl::queryInterface( const Type & rType )
static_cast< XIdlField2 * >( this ) ) );
return (aRet.hasValue() ? aRet : IdlMemberImpl::queryInterface( rType ));
}
-//__________________________________________________________________________________________________
+
void IdlEnumFieldImpl::acquire() throw()
{
IdlMemberImpl::acquire();
}
-//__________________________________________________________________________________________________
+
void IdlEnumFieldImpl::release() throw()
{
IdlMemberImpl::release();
}
// XTypeProvider
-//__________________________________________________________________________________________________
+
Sequence< Type > IdlEnumFieldImpl::getTypes()
throw (::com::sun::star::uno::RuntimeException)
{
@@ -105,7 +105,7 @@ Sequence< Type > IdlEnumFieldImpl::getTypes()
}
return s_pTypes->getTypes();
}
-//__________________________________________________________________________________________________
+
Sequence< sal_Int8 > IdlEnumFieldImpl::getImplementationId()
throw (::com::sun::star::uno::RuntimeException)
{
@@ -123,13 +123,13 @@ Sequence< sal_Int8 > IdlEnumFieldImpl::getImplementationId()
}
// XIdlMember
-//__________________________________________________________________________________________________
+
Reference< XIdlClass > IdlEnumFieldImpl::getDeclaringClass()
throw(::com::sun::star::uno::RuntimeException)
{
return IdlMemberImpl::getDeclaringClass();
}
-//__________________________________________________________________________________________________
+
OUString IdlEnumFieldImpl::getName()
throw(::com::sun::star::uno::RuntimeException)
{
@@ -137,25 +137,25 @@ OUString IdlEnumFieldImpl::getName()
}
// XIdlField
-//__________________________________________________________________________________________________
+
Reference< XIdlClass > IdlEnumFieldImpl::getType()
throw(::com::sun::star::uno::RuntimeException)
{
return getDeclaringClass();
}
-//__________________________________________________________________________________________________
+
FieldAccessMode IdlEnumFieldImpl::getAccessMode()
throw(::com::sun::star::uno::RuntimeException)
{
return FieldAccessMode_READONLY;
}
-//__________________________________________________________________________________________________
+
Any IdlEnumFieldImpl::get( const Any & )
throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException)
{
return Any( &_nValue, getTypeDescr() );
}
-//__________________________________________________________________________________________________
+
void IdlEnumFieldImpl::set( const Any &, const Any & )
throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IllegalAccessException, ::com::sun::star::uno::RuntimeException)
{
@@ -163,7 +163,7 @@ void IdlEnumFieldImpl::set( const Any &, const Any & )
OUString("enum field is constant!"),
(XWeak *)(OWeakObject *)this );
}
-//__________________________________________________________________________________________________
+
void IdlEnumFieldImpl::set( Any &, const Any & )
throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IllegalAccessException, ::com::sun::star::uno::RuntimeException)
{
@@ -177,14 +177,14 @@ void IdlEnumFieldImpl::set( Any &, const Any & )
//##################################################################################################
-//__________________________________________________________________________________________________
+
EnumIdlClassImpl::~EnumIdlClassImpl()
{
delete _pFields;
}
// IdlClassImpl modifications
-//__________________________________________________________________________________________________
+
Reference< XIdlField > EnumIdlClassImpl::getField( const OUString & rName )
throw(::com::sun::star::uno::RuntimeException)
{
@@ -197,7 +197,7 @@ Reference< XIdlField > EnumIdlClassImpl::getField( const OUString & rName )
else
return Reference< XIdlField >();
}
-//__________________________________________________________________________________________________
+
Sequence< Reference< XIdlField > > EnumIdlClassImpl::getFields()
throw(::com::sun::star::uno::RuntimeException)
{
@@ -223,7 +223,7 @@ Sequence< Reference< XIdlField > > EnumIdlClassImpl::getFields()
}
return *_pFields;
}
-//__________________________________________________________________________________________________
+
void EnumIdlClassImpl::createObject( Any & rObj )
throw(::com::sun::star::uno::RuntimeException)
{
diff --git a/stoc/source/corereflection/criface.cxx b/stoc/source/corereflection/criface.cxx
index b6387ca19191..8f46bf813e42 100644
--- a/stoc/source/corereflection/criface.cxx
+++ b/stoc/source/corereflection/criface.cxx
@@ -79,7 +79,7 @@ private:
};
// XInterface
-//__________________________________________________________________________________________________
+
Any IdlAttributeFieldImpl::queryInterface( const Type & rType )
throw(::com::sun::star::uno::RuntimeException)
{
@@ -88,19 +88,19 @@ Any IdlAttributeFieldImpl::queryInterface( const Type & rType )
static_cast< XIdlField2 * >( this ) ) );
return (aRet.hasValue() ? aRet : IdlMemberImpl::queryInterface( rType ));
}
-//__________________________________________________________________________________________________
+
void IdlAttributeFieldImpl::acquire() throw()
{
IdlMemberImpl::acquire();
}
-//__________________________________________________________________________________________________
+
void IdlAttributeFieldImpl::release() throw()
{
IdlMemberImpl::release();
}
// XTypeProvider
-//__________________________________________________________________________________________________
+
Sequence< Type > IdlAttributeFieldImpl::getTypes()
throw (::com::sun::star::uno::RuntimeException)
{
@@ -119,7 +119,7 @@ Sequence< Type > IdlAttributeFieldImpl::getTypes()
}
return s_pTypes->getTypes();
}
-//__________________________________________________________________________________________________
+
Sequence< sal_Int8 > IdlAttributeFieldImpl::getImplementationId()
throw (::com::sun::star::uno::RuntimeException)
{
@@ -137,7 +137,7 @@ Sequence< sal_Int8 > IdlAttributeFieldImpl::getImplementationId()
}
// XIdlMember
-//__________________________________________________________________________________________________
+
Reference< XIdlClass > IdlAttributeFieldImpl::getDeclaringClass()
throw(::com::sun::star::uno::RuntimeException)
{
@@ -154,7 +154,7 @@ Reference< XIdlClass > IdlAttributeFieldImpl::getDeclaringClass()
}
return _xDeclClass;
}
-//__________________________________________________________________________________________________
+
OUString IdlAttributeFieldImpl::getName()
throw(::com::sun::star::uno::RuntimeException)
{
@@ -162,21 +162,21 @@ OUString IdlAttributeFieldImpl::getName()
}
// XIdlField
-//__________________________________________________________________________________________________
+
Reference< XIdlClass > IdlAttributeFieldImpl::getType()
throw(::com::sun::star::uno::RuntimeException)
{
return getReflection()->forType(
getAttributeTypeDescr()->pAttributeTypeRef );
}
-//__________________________________________________________________________________________________
+
FieldAccessMode IdlAttributeFieldImpl::getAccessMode()
throw(::com::sun::star::uno::RuntimeException)
{
return (((typelib_InterfaceAttributeTypeDescription *)getAttributeTypeDescr())->bReadOnly
? FieldAccessMode_READONLY : FieldAccessMode_READWRITE);
}
-//__________________________________________________________________________________________________
+
Any IdlAttributeFieldImpl::get( const Any & rObj )
throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException)
{
@@ -209,7 +209,7 @@ Any IdlAttributeFieldImpl::get( const Any & rObj )
OUString("illegal object given!"),
(XWeak *)(OWeakObject *)this, 0 );
}
-//__________________________________________________________________________________________________
+
void IdlAttributeFieldImpl::set( Any & rObj, const Any & rValue )
throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IllegalAccessException, ::com::sun::star::uno::RuntimeException)
{
@@ -299,7 +299,7 @@ void IdlAttributeFieldImpl::set( Any & rObj, const Any & rValue )
OUString("illegal destination object given!"),
(XWeak *)(OWeakObject *)this, 0 );
}
-//__________________________________________________________________________________________________
+
void IdlAttributeFieldImpl::set( const Any & rObj, const Any & rValue )
throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::IllegalAccessException, ::com::sun::star::uno::RuntimeException)
{
@@ -377,7 +377,7 @@ public:
virtual MethodMode SAL_CALL getMode() throw(::com::sun::star::uno::RuntimeException);
virtual Any SAL_CALL invoke( const Any & rObj, Sequence< Any > & rArgs ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::reflection::InvocationTargetException, ::com::sun::star::uno::RuntimeException);
};
-//__________________________________________________________________________________________________
+
IdlInterfaceMethodImpl::~IdlInterfaceMethodImpl()
{
delete _pParamInfos;
@@ -386,26 +386,26 @@ IdlInterfaceMethodImpl::~IdlInterfaceMethodImpl()
}
// XInterface
-//__________________________________________________________________________________________________
+
Any IdlInterfaceMethodImpl::queryInterface( const Type & rType )
throw(::com::sun::star::uno::RuntimeException)
{
Any aRet( ::cppu::queryInterface( rType, static_cast< XIdlMethod * >( this ) ) );
return (aRet.hasValue() ? aRet : IdlMemberImpl::queryInterface( rType ));
}
-//__________________________________________________________________________________________________
+
void IdlInterfaceMethodImpl::acquire() throw()
{
IdlMemberImpl::acquire();
}
-//__________________________________________________________________________________________________
+
void IdlInterfaceMethodImpl::release() throw()
{
IdlMemberImpl::release();
}
// XTypeProvider
-//__________________________________________________________________________________________________
+
Sequence< Type > IdlInterfaceMethodImpl::getTypes()
throw (::com::sun::star::uno::RuntimeException)
{
@@ -423,7 +423,7 @@ Sequence< Type > IdlInterfaceMethodImpl::getTypes()
}
return s_pTypes->getTypes();
}
-//__________________________________________________________________________________________________
+
Sequence< sal_Int8 > IdlInterfaceMethodImpl::getImplementationId()
throw (::com::sun::star::uno::RuntimeException)
{
@@ -441,7 +441,7 @@ Sequence< sal_Int8 > IdlInterfaceMethodImpl::getImplementationId()
}
// XIdlMember
-//__________________________________________________________________________________________________
+
Reference< XIdlClass > IdlInterfaceMethodImpl::getDeclaringClass()
throw(::com::sun::star::uno::RuntimeException)
{
@@ -458,7 +458,7 @@ Reference< XIdlClass > IdlInterfaceMethodImpl::getDeclaringClass()
}
return _xDeclClass;
}
-//__________________________________________________________________________________________________
+
OUString IdlInterfaceMethodImpl::getName()
throw(::com::sun::star::uno::RuntimeException)
{
@@ -466,13 +466,13 @@ OUString IdlInterfaceMethodImpl::getName()
}
// XIdlMethod
-//__________________________________________________________________________________________________
+
Reference< XIdlClass > SAL_CALL IdlInterfaceMethodImpl::getReturnType()
throw(::com::sun::star::uno::RuntimeException)
{
return getReflection()->forType( getMethodTypeDescr()->pReturnTypeRef );
}
-//__________________________________________________________________________________________________
+
Sequence< Reference< XIdlClass > > IdlInterfaceMethodImpl::getExceptionTypes()
throw(::com::sun::star::uno::RuntimeException)
{
@@ -498,7 +498,7 @@ Sequence< Reference< XIdlClass > > IdlInterfaceMethodImpl::getExceptionTypes()
}
return *_pExceptionTypes;
}
-//__________________________________________________________________________________________________
+
Sequence< Reference< XIdlClass > > IdlInterfaceMethodImpl::getParameterTypes()
throw(::com::sun::star::uno::RuntimeException)
{
@@ -524,7 +524,7 @@ Sequence< Reference< XIdlClass > > IdlInterfaceMethodImpl::getParameterTypes()
}
return *_pParamTypes;
}
-//__________________________________________________________________________________________________
+
Sequence< ParamInfo > IdlInterfaceMethodImpl::getParameterInfos()
throw(::com::sun::star::uno::RuntimeException)
{
@@ -584,14 +584,14 @@ Sequence< ParamInfo > IdlInterfaceMethodImpl::getParameterInfos()
}
return *_pParamInfos;
}
-//__________________________________________________________________________________________________
+
MethodMode SAL_CALL IdlInterfaceMethodImpl::getMode()
throw(::com::sun::star::uno::RuntimeException)
{
return
getMethodTypeDescr()->bOneWay ? MethodMode_ONEWAY : MethodMode_TWOWAY;
}
-//__________________________________________________________________________________________________
+
Any SAL_CALL IdlInterfaceMethodImpl::invoke( const Any & rObj, Sequence< Any > & rArgs )
throw(::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::reflection::InvocationTargetException,
@@ -785,7 +785,7 @@ Any SAL_CALL IdlInterfaceMethodImpl::invoke( const Any & rObj, Sequence< Any > &
//##################################################################################################
-//__________________________________________________________________________________________________
+
InterfaceIdlClassImpl::~InterfaceIdlClassImpl()
{
for ( sal_Int32 nPos = _nMethods + _nAttributes; nPos--; )
@@ -794,7 +794,7 @@ InterfaceIdlClassImpl::~InterfaceIdlClassImpl()
delete [] _pSortedMemberInit;
}
-//__________________________________________________________________________________________________
+
Sequence< Reference< XIdlClass > > InterfaceIdlClassImpl::getSuperclasses()
throw(::com::sun::star::uno::RuntimeException)
{
@@ -810,7 +810,7 @@ Sequence< Reference< XIdlClass > > InterfaceIdlClassImpl::getSuperclasses()
}
return Sequence< Reference< XIdlClass > >(_xSuperClasses);
}
-//__________________________________________________________________________________________________
+
void InterfaceIdlClassImpl::initMembers()
{
sal_Int32 nAll = getTypeDescr()->nAllMembers;
@@ -842,7 +842,7 @@ void InterfaceIdlClassImpl::initMembers()
_pSortedMemberInit = pSortedMemberInit;
}
-//__________________________________________________________________________________________________
+
sal_Bool InterfaceIdlClassImpl::isAssignableFrom( const Reference< XIdlClass > & xType )
throw(::com::sun::star::uno::RuntimeException)
{
@@ -862,14 +862,14 @@ sal_Bool InterfaceIdlClassImpl::isAssignableFrom( const Reference< XIdlClass > &
}
return sal_False;
}
-//__________________________________________________________________________________________________
+
Uik InterfaceIdlClassImpl::getUik()
throw(::com::sun::star::uno::RuntimeException)
{
return Uik(0, 0, 0, 0, 0);
// Uiks are deprecated and this function must not be called
}
-//__________________________________________________________________________________________________
+
Sequence< Reference< XIdlMethod > > InterfaceIdlClassImpl::getMethods()
throw(::com::sun::star::uno::RuntimeException)
{
@@ -889,7 +889,7 @@ Sequence< Reference< XIdlMethod > > InterfaceIdlClassImpl::getMethods()
}
return aRet;
}
-//__________________________________________________________________________________________________
+
Sequence< Reference< XIdlField > > InterfaceIdlClassImpl::getFields()
throw(::com::sun::star::uno::RuntimeException)
{
@@ -909,7 +909,7 @@ Sequence< Reference< XIdlField > > InterfaceIdlClassImpl::getFields()
}
return aRet;
}
-//__________________________________________________________________________________________________
+
Reference< XIdlMethod > InterfaceIdlClassImpl::getMethod( const OUString & rName )
throw(::com::sun::star::uno::RuntimeException)
{
@@ -939,7 +939,7 @@ Reference< XIdlMethod > InterfaceIdlClassImpl::getMethod( const OUString & rName
}
return xRet;
}
-//__________________________________________________________________________________________________
+
Reference< XIdlField > InterfaceIdlClassImpl::getField( const OUString & rName )
throw(::com::sun::star::uno::RuntimeException)
{
@@ -969,7 +969,7 @@ Reference< XIdlField > InterfaceIdlClassImpl::getField( const OUString & rName )
}
return xRet;
}
-//__________________________________________________________________________________________________
+
void InterfaceIdlClassImpl::createObject( Any & rObj )
throw(::com::sun::star::uno::RuntimeException)
{
diff --git a/stoc/source/implementationregistration/implreg.cxx b/stoc/source/implementationregistration/implreg.cxx
index 738f25ad68d9..c5be2a5a28d5 100644
--- a/stoc/source/implementationregistration/implreg.cxx
+++ b/stoc/source/implementationregistration/implreg.cxx
@@ -894,7 +894,7 @@ static void deleteAllServiceEntries( const Reference < XSimpleRegistry >& xRe
}
}
-//--------------------------------------------------------------------------------------------------
+
static bool is_supported_service(
OUString const & service_name,
Reference< reflection::XServiceTypeDescription > const & xService_td )
@@ -912,7 +912,7 @@ static bool is_supported_service(
return false;
}
-//--------------------------------------------------------------------------------------------------
+
static void insert_singletons(
Reference< registry::XSimpleRegistry > const & xDest,
Reference< registry::XRegistryKey > const & xImplKey,
diff --git a/stoc/source/inspect/introspection.cxx b/stoc/source/inspect/introspection.cxx
index 821239761617..b2963f570ba5 100644
--- a/stoc/source/inspect/introspection.cxx
+++ b/stoc/source/inspect/introspection.cxx
@@ -1431,7 +1431,7 @@ OUString ImplIntrospectionAccess::getExactName( const OUString& rApproximateName
}
-//-----------------------------------------------------------------------------
+
struct hashIntrospectionKey_Impl
{
@@ -1717,7 +1717,7 @@ void ImplIntrospection::dispose() throw(::com::sun::star::uno::RuntimeException)
}
-//-----------------------------------------------------------------------------
+
// XInterface
Any ImplIntrospection::queryInterface( const Type & rType )
@@ -1836,7 +1836,7 @@ Reference<XIntrospectionAccess> ImplIntrospection::inspect(const Any& aToInspect
return xAccess;
}
-//-----------------------------------------------------------------------------
+
// Hashtable fuer Pruefung auf mehrfache Beruecksichtigung von Interfaces
struct hashInterface_Impl
diff --git a/stoc/source/invocation/invocation.cxx b/stoc/source/invocation/invocation.cxx
index ecc8626c8646..2daa180850b3 100644
--- a/stoc/source/invocation/invocation.cxx
+++ b/stoc/source/invocation/invocation.cxx
@@ -236,7 +236,7 @@ private:
//==================================================================================================
//==================================================================================================
-//--------------------------------------------------------------------------------------------------
+
Invocation_Impl::Invocation_Impl
(
const Any & rAdapted,
@@ -329,7 +329,7 @@ Any SAL_CALL Invocation_Impl::queryInterface( const Type & aType )
}
-//--------------------------------------------------------------------------------------------------
+
Any Invocation_Impl::getMaterial(void) throw(RuntimeException)
{
// AB, 12.2.1999 Sicherstellen, dass das Material wenn moeglich
@@ -353,7 +353,7 @@ Any Invocation_Impl::getMaterial(void) throw(RuntimeException)
return _aMaterial;
}
-//--------------------------------------------------------------------------------------------------
+
void Invocation_Impl::setMaterial( const Any& rMaterial )
{
// set the material first and only once
@@ -441,7 +441,7 @@ void Invocation_Impl::setMaterial( const Any& rMaterial )
}
}
-//--------------------------------------------------------------------------------------------------
+
OUString Invocation_Impl::getExactName( const OUString& rApproximateName )
throw( RuntimeException )
{
@@ -456,7 +456,7 @@ OUString Invocation_Impl::getExactName( const OUString& rApproximateName )
return aRet;
}
-//--------------------------------------------------------------------------------------------------
+
Reference<XIntrospectionAccess> Invocation_Impl::getIntrospection(void)
throw( RuntimeException )
{
@@ -466,7 +466,7 @@ Reference<XIntrospectionAccess> Invocation_Impl::getIntrospection(void)
return _xIntrospectionAccess;
}
-//--------------------------------------------------------------------------------------------------
+
sal_Bool Invocation_Impl::hasMethod( const OUString& Name )
throw( RuntimeException )
{
@@ -477,7 +477,7 @@ sal_Bool Invocation_Impl::hasMethod( const OUString& Name )
return sal_False;
}
-//--------------------------------------------------------------------------------------------------
+
sal_Bool Invocation_Impl::hasProperty( const OUString& Name )
throw( RuntimeException )
{
@@ -493,7 +493,7 @@ sal_Bool Invocation_Impl::hasProperty( const OUString& Name )
return sal_False;
}
-//--------------------------------------------------------------------------------------------------
+
Any Invocation_Impl::getValue( const OUString& PropertyName )
throw( UnknownPropertyException, RuntimeException )
{
@@ -529,7 +529,7 @@ Any Invocation_Impl::getValue( const OUString& PropertyName )
Reference< XInterface >() );
}
-//--------------------------------------------------------------------------------------------------
+
void Invocation_Impl::setValue( const OUString& PropertyName, const Any& Value )
throw( UnknownPropertyException, CannotConvertException, InvocationTargetException, RuntimeException )
{
@@ -608,7 +608,7 @@ void Invocation_Impl::setValue( const OUString& PropertyName, const Any& Value )
}
}
-//--------------------------------------------------------------------------------------------------
+
Any Invocation_Impl::invoke( const OUString& FunctionName, const Sequence<Any>& InParams,
Sequence<sal_Int16>& OutIndices, Sequence<Any>& OutParams )
throw( IllegalArgumentException, CannotConvertException, InvocationTargetException, RuntimeException )
@@ -712,7 +712,7 @@ Any Invocation_Impl::invoke( const OUString& FunctionName, const Sequence<Any>&
throw aExc;
}
-//--------------------------------------------------------------------------------------------------
+
// Struct to optimize sorting
struct MemberItem
@@ -1123,14 +1123,14 @@ Sequence< OUString > InvocationService::getSupportedServiceNames(void) throw( Ru
return inv_getSupportedServiceNames();
}
-//--------------------------------------------------------------------------------------------------
+
Reference<XInterface> InvocationService::createInstance(void) throw( Exception, RuntimeException )
{
//TODO:throw( Exception("no default construction of invocation adapter possible!", *this) );
return Reference<XInterface>(); // dummy
}
-//--------------------------------------------------------------------------------------------------
+
Reference<XInterface> InvocationService::createInstanceWithArguments(
const Sequence<Any>& rArguments ) throw( Exception, RuntimeException )
{
diff --git a/stoc/source/invocation_adapterfactory/iafactory.cxx b/stoc/source/invocation_adapterfactory/iafactory.cxx
index 93f2b68074c2..5759351522d9 100644
--- a/stoc/source/invocation_adapterfactory/iafactory.cxx
+++ b/stoc/source/invocation_adapterfactory/iafactory.cxx
@@ -173,7 +173,7 @@ struct AdapterImpl
FactoryImpl * pFactory )
SAL_THROW( (RuntimeException) );
};
-//______________________________________________________________________________
+
inline AdapterImpl::~AdapterImpl()
SAL_THROW(())
{
@@ -187,13 +187,13 @@ inline AdapterImpl::~AdapterImpl()
(*m_pReceiver->release)( m_pReceiver );
m_pFactory->release();
}
-//______________________________________________________________________________
+
inline void AdapterImpl::acquire()
SAL_THROW(())
{
osl_atomic_increment( &m_nRef );
}
-//______________________________________________________________________________
+
inline void AdapterImpl::release()
SAL_THROW(())
{
@@ -220,7 +220,7 @@ inline void AdapterImpl::release()
delete this;
}
-//------------------------------------------------------------------------------
+
static inline void constructRuntimeException(
uno_Any * pExc, const OUString & rMsg )
{
@@ -230,7 +230,7 @@ static inline void constructRuntimeException(
pExc, &exc, ::getCppuType( &exc ).getTypeLibType(), 0 );
}
-//------------------------------------------------------------------------------
+
static inline bool type_equals(
typelib_TypeDescriptionReference * pType1,
typelib_TypeDescriptionReference * pType2 )
@@ -242,7 +242,7 @@ static inline bool type_equals(
pType1->pTypeName->buffer, pType2->pTypeName->buffer )));
}
-//______________________________________________________________________________
+
bool AdapterImpl::coerce_assign(
void * pDest, typelib_TypeDescriptionReference * pType, uno_Any * pSource,
uno_Any * pOutExc )
@@ -316,7 +316,7 @@ bool AdapterImpl::coerce_assign(
}
}
}
-//______________________________________________________________________________
+
inline bool AdapterImpl::coerce_construct(
void * pDest, typelib_TypeDescriptionReference * pType, uno_Any * pSource,
uno_Any * pExc )
@@ -335,7 +335,7 @@ inline bool AdapterImpl::coerce_construct(
return coerce_assign( pDest, pType, pSource, pExc );
}
-//------------------------------------------------------------------------------
+
static void handleInvokExc( uno_Any * pDest, uno_Any * pSource )
{
OUString const & name =
@@ -364,7 +364,7 @@ static void handleInvokExc( uno_Any * pDest, uno_Any * pSource )
}
}
}
-//______________________________________________________________________________
+
void AdapterImpl::getValue(
const typelib_TypeDescription * pMemberType,
void * pReturn, uno_Any ** ppException )
@@ -399,7 +399,7 @@ void AdapterImpl::getValue(
::uno_any_destruct( &aInvokRet, 0 );
}
}
-//______________________________________________________________________________
+
void AdapterImpl::setValue(
const typelib_TypeDescription * pMemberType,
void * pArgs[], uno_Any ** ppException )
@@ -433,7 +433,7 @@ void AdapterImpl::setValue(
::uno_any_destruct( &aInvokVal, 0 ); // cleanup
}
-//______________________________________________________________________________
+
void AdapterImpl::invoke(
const typelib_TypeDescription * pMemberType,
void * pReturn, void * pArgs[], uno_Any ** ppException )
@@ -567,17 +567,17 @@ void AdapterImpl::invoke(
extern "C"
{
-//______________________________________________________________________________
+
static void SAL_CALL adapter_acquire( uno_Interface * pUnoI )
{
static_cast< InterfaceAdapterImpl * >( pUnoI )->m_pAdapter->acquire();
}
-//______________________________________________________________________________
+
static void SAL_CALL adapter_release( uno_Interface * pUnoI )
{
static_cast< InterfaceAdapterImpl * >( pUnoI )->m_pAdapter->release();
}
-//______________________________________________________________________________
+
static void SAL_CALL adapter_dispatch(
uno_Interface * pUnoI, const typelib_TypeDescription * pMemberType,
void * pReturn, void * pArgs[], uno_Any ** ppException )
@@ -642,7 +642,7 @@ static void SAL_CALL adapter_dispatch(
}
}
}
-//______________________________________________________________________________
+
AdapterImpl::AdapterImpl(
void * key, Reference< script::XInvocation > const & xReceiver,
const Sequence< Type > & rTypes,
@@ -695,7 +695,7 @@ AdapterImpl::AdapterImpl(
m_pFactory->acquire();
}
-//______________________________________________________________________________
+
FactoryImpl::FactoryImpl( Reference< XComponentContext > const & xContext )
SAL_THROW( (RuntimeException) )
: m_pInvokMethodTD( 0 ),
@@ -763,7 +763,7 @@ FactoryImpl::FactoryImpl( Reference< XComponentContext > const & xContext )
"missing type descriptions!", Reference< XInterface >() );
}
}
-//______________________________________________________________________________
+
FactoryImpl::~FactoryImpl() SAL_THROW(())
{
::typelib_typedescription_release( m_pInvokMethodTD );
@@ -780,7 +780,7 @@ FactoryImpl::~FactoryImpl() SAL_THROW(())
#endif
}
-//------------------------------------------------------------------------------
+
static inline AdapterImpl * lookup_adapter(
t_ptr_set ** pp_adapter_set,
t_ptr_map & map, void * key, Sequence< Type > const & rTypes )
@@ -827,7 +827,7 @@ static inline AdapterImpl * lookup_adapter(
}
// XInvocationAdapterFactory2 impl
-//______________________________________________________________________________
+
Reference< XInterface > FactoryImpl::createAdapter(
const Reference< script::XInvocation > & xReceiver,
const Sequence< Type > & rTypes )
@@ -889,7 +889,7 @@ Reference< XInterface > FactoryImpl::createAdapter(
return xRet;
}
// XInvocationAdapterFactory impl
-//______________________________________________________________________________
+
Reference< XInterface > FactoryImpl::createAdapter(
const Reference< script::XInvocation > & xReceiver, const Type & rType )
throw (RuntimeException)
@@ -898,19 +898,19 @@ Reference< XInterface > FactoryImpl::createAdapter(
}
// XServiceInfo
-//______________________________________________________________________________
+
OUString FactoryImpl::getImplementationName()
throw (RuntimeException)
{
return invadp_getImplementationName();
}
-//______________________________________________________________________________
+
sal_Bool FactoryImpl::supportsService( const OUString & rServiceName )
throw (RuntimeException)
{
return cppu::supportsService(this, rServiceName);
}
-//______________________________________________________________________________
+
Sequence< OUString > FactoryImpl::getSupportedServiceNames()
throw (RuntimeException)
{
diff --git a/stoc/source/proxy_factory/proxyfac.cxx b/stoc/source/proxy_factory/proxyfac.cxx
index ef76460ed462..25aefdfa983d 100644
--- a/stoc/source/proxy_factory/proxyfac.cxx
+++ b/stoc/source/proxy_factory/proxyfac.cxx
@@ -91,7 +91,7 @@ struct FactoryImpl : public ::cppu::WeakImplHelper2< lang::XServiceInfo,
throw (RuntimeException);
};
-//______________________________________________________________________________
+
UnoInterfaceReference FactoryImpl::binuno_queryInterface(
UnoInterfaceReference const & unoI,
typelib_InterfaceTypeDescription * pTypeDescr )
@@ -200,7 +200,7 @@ struct binuno_Proxy : public uno_Interface
extern "C"
{
-//------------------------------------------------------------------------------
+
static void SAL_CALL binuno_proxy_free(
uno_ExtEnvironment * pEnv, void * pProxy )
{
@@ -211,7 +211,7 @@ static void SAL_CALL binuno_proxy_free(
delete proxy;
}
-//------------------------------------------------------------------------------
+
static void SAL_CALL binuno_proxy_acquire( uno_Interface * pUnoI )
{
binuno_Proxy * that = static_cast< binuno_Proxy * >( pUnoI );
@@ -230,7 +230,7 @@ static void SAL_CALL binuno_proxy_acquire( uno_Interface * pUnoI )
}
}
-//------------------------------------------------------------------------------
+
static void SAL_CALL binuno_proxy_release( uno_Interface * pUnoI )
{
binuno_Proxy * that = static_cast< binuno_Proxy * >( pUnoI );
@@ -243,7 +243,7 @@ static void SAL_CALL binuno_proxy_release( uno_Interface * pUnoI )
}
}
-//------------------------------------------------------------------------------
+
static void SAL_CALL binuno_proxy_dispatch(
uno_Interface * pUnoI, const typelib_TypeDescription * pMemberType,
void * pReturn, void * pArgs [], uno_Any ** ppException )
@@ -290,7 +290,7 @@ static void SAL_CALL binuno_proxy_dispatch(
}
-//______________________________________________________________________________
+
inline binuno_Proxy::binuno_Proxy(
::rtl::Reference< ProxyRoot > const & root,
UnoInterfaceReference const & target,
@@ -306,12 +306,12 @@ inline binuno_Proxy::binuno_Proxy(
uno_Interface::pDispatcher = binuno_proxy_dispatch;
}
-//______________________________________________________________________________
+
ProxyRoot::~ProxyRoot()
{
}
-//______________________________________________________________________________
+
inline ProxyRoot::ProxyRoot(
::rtl::Reference< FactoryImpl > const & factory,
Reference< XInterface > const & xTarget )
@@ -323,7 +323,7 @@ inline ProxyRoot::ProxyRoot(
OSL_ENSURE( m_target.is(), "### mapping interface failed!" );
}
-//______________________________________________________________________________
+
Any ProxyRoot::queryAggregation( Type const & rType )
throw (RuntimeException)
{
@@ -397,7 +397,7 @@ Any ProxyRoot::queryAggregation( Type const & rType )
//##############################################################################
-//______________________________________________________________________________
+
FactoryImpl::FactoryImpl()
{
OUString uno = UNO_LB_UNO;
@@ -422,11 +422,11 @@ FactoryImpl::FactoryImpl()
OSL_ENSURE( m_cpp2uno.is(), "### cannot get bridge C++ <-> uno!" );
}
-//______________________________________________________________________________
+
FactoryImpl::~FactoryImpl() {}
// XProxyFactory
-//______________________________________________________________________________
+
Reference< XAggregation > FactoryImpl::createProxy(
Reference< XInterface > const & xTarget )
throw (RuntimeException)
@@ -435,7 +435,7 @@ Reference< XAggregation > FactoryImpl::createProxy(
}
// XServiceInfo
-//______________________________________________________________________________
+
OUString FactoryImpl::getImplementationName()
throw (RuntimeException)
{
diff --git a/stoc/source/security/access_controller.cxx b/stoc/source/security/access_controller.cxx
index abc959c056b0..23f7f8313e14 100644
--- a/stoc/source/security/access_controller.cxx
+++ b/stoc/source/security/access_controller.cxx
@@ -95,7 +95,7 @@ public:
Any const & perm )
throw (RuntimeException);
};
-//__________________________________________________________________________________________________
+
inline acc_Intersection::acc_Intersection(
Reference< security::XAccessControlContext > const & x1,
Reference< security::XAccessControlContext > const & x2 )
@@ -103,11 +103,11 @@ inline acc_Intersection::acc_Intersection(
: m_x1( x1 )
, m_x2( x2 )
{}
-//__________________________________________________________________________________________________
+
acc_Intersection::~acc_Intersection()
SAL_THROW(())
{}
-//--------------------------------------------------------------------------------------------------
+
inline Reference< security::XAccessControlContext > acc_Intersection::create(
Reference< security::XAccessControlContext > const & x1,
Reference< security::XAccessControlContext > const & x2 )
@@ -119,7 +119,7 @@ inline Reference< security::XAccessControlContext > acc_Intersection::create(
return x1;
return new acc_Intersection( x1, x2 );
}
-//__________________________________________________________________________________________________
+
void acc_Intersection::checkPermission(
Any const & perm )
throw (RuntimeException)
@@ -154,7 +154,7 @@ public:
Any const & perm )
throw (RuntimeException);
};
-//__________________________________________________________________________________________________
+
inline acc_Union::acc_Union(
Reference< security::XAccessControlContext > const & x1,
Reference< security::XAccessControlContext > const & x2 )
@@ -162,11 +162,11 @@ inline acc_Union::acc_Union(
: m_x1( x1 )
, m_x2( x2 )
{}
-//__________________________________________________________________________________________________
+
acc_Union::~acc_Union()
SAL_THROW(())
{}
-//--------------------------------------------------------------------------------------------------
+
inline Reference< security::XAccessControlContext > acc_Union::create(
Reference< security::XAccessControlContext > const & x1,
Reference< security::XAccessControlContext > const & x2 )
@@ -178,7 +178,7 @@ inline Reference< security::XAccessControlContext > acc_Union::create(
return Reference< security::XAccessControlContext >(); // unrestricted
return new acc_Union( x1, x2 );
}
-//__________________________________________________________________________________________________
+
void acc_Union::checkPermission(
Any const & perm )
throw (RuntimeException)
@@ -212,17 +212,17 @@ public:
Any const & perm )
throw (RuntimeException);
};
-//__________________________________________________________________________________________________
+
inline acc_Policy::acc_Policy(
PermissionCollection const & permissions )
SAL_THROW(())
: m_permissions( permissions )
{}
-//__________________________________________________________________________________________________
+
acc_Policy::~acc_Policy()
SAL_THROW(())
{}
-//__________________________________________________________________________________________________
+
void acc_Policy::checkPermission(
Any const & perm )
throw (RuntimeException)
@@ -257,7 +257,7 @@ public:
virtual Any SAL_CALL getValueByName( OUString const & name )
throw (RuntimeException);
};
-//__________________________________________________________________________________________________
+
inline acc_CurrentContext::acc_CurrentContext(
Reference< XCurrentContext > const & xDelegate,
Reference< security::XAccessControlContext > const & xRestriction )
@@ -271,17 +271,17 @@ inline acc_CurrentContext::acc_CurrentContext(
}
// return empty any otherwise on getValueByName(), not null interface
}
-//__________________________________________________________________________________________________
+
acc_CurrentContext::~acc_CurrentContext()
SAL_THROW(())
{}
-//__________________________________________________________________________________________________
+
void acc_CurrentContext::acquire()
throw ()
{
osl_atomic_increment( &m_refcount );
}
-//__________________________________________________________________________________________________
+
void acc_CurrentContext::release()
throw ()
{
@@ -290,7 +290,7 @@ void acc_CurrentContext::release()
delete this;
}
}
-//__________________________________________________________________________________________________
+
Any acc_CurrentContext::getValueByName( OUString const & name )
throw (RuntimeException)
{
@@ -427,7 +427,7 @@ public:
virtual Sequence< OUString > SAL_CALL getSupportedServiceNames()
throw (RuntimeException);
};
-//__________________________________________________________________________________________________
+
AccessController::AccessController( Reference< XComponentContext > const & xComponentContext )
SAL_THROW( (RuntimeException) )
: t_helper( m_mutex )
@@ -490,11 +490,11 @@ AccessController::AccessController( Reference< XComponentContext > const & xComp
m_user2permissions.setSize( cacheSize );
}
}
-//__________________________________________________________________________________________________
+
AccessController::~AccessController()
SAL_THROW(())
{}
-//__________________________________________________________________________________________________
+
void AccessController::disposing()
{
m_mode = OFF; // avoid checks from now on xxx todo review/ better DYNAMIC_ONLY?
@@ -503,7 +503,7 @@ void AccessController::disposing()
}
// XInitialization impl
-//__________________________________________________________________________________________________
+
void AccessController::initialize(
Sequence< Any > const & arguments )
throw (Exception)
@@ -527,7 +527,7 @@ void AccessController::initialize(
m_singleUser_init = false;
}
-//__________________________________________________________________________________________________
+
Reference< security::XPolicy > const & AccessController::getPolicy()
SAL_THROW( (RuntimeException) )
{
@@ -583,13 +583,13 @@ static void dumpPermissions(
#endif
-//__________________________________________________________________________________________________
+
inline void AccessController::clearPostPoned() SAL_THROW(())
{
delete reinterpret_cast< t_rec_vec * >( m_rec.getData() );
m_rec.setData( 0 );
}
-//__________________________________________________________________________________________________
+
void AccessController::checkAndClearPostPoned() SAL_THROW( (RuntimeException) )
{
// check postponed permissions
@@ -648,7 +648,7 @@ void AccessController::checkAndClearPostPoned() SAL_THROW( (RuntimeException) )
}
}
}
-//__________________________________________________________________________________________________
+
/** this is the only function calling the policy singleton and thus has to take care
of recurring calls!
@@ -833,7 +833,7 @@ PermissionCollection AccessController::getEffectivePermissions(
}
// XAccessController impl
-//__________________________________________________________________________________________________
+
void AccessController::checkPermission(
Any const & perm )
throw (RuntimeException)
@@ -862,7 +862,7 @@ void AccessController::checkPermission(
// then static check
getEffectivePermissions( xContext, perm ).checkPermission( perm );
}
-//__________________________________________________________________________________________________
+
Any AccessController::doRestricted(
Reference< security::XAction > const & xAction,
Reference< security::XAccessControlContext > const & xRestriction )
@@ -895,7 +895,7 @@ Any AccessController::doRestricted(
return xAction->run();
}
}
-//__________________________________________________________________________________________________
+
Any AccessController::doPrivileged(
Reference< security::XAction > const & xAction,
Reference< security::XAccessControlContext > const & xRestriction )
@@ -932,7 +932,7 @@ Any AccessController::doPrivileged(
return xAction->run();
}
}
-//__________________________________________________________________________________________________
+
Reference< security::XAccessControlContext > AccessController::getContext()
throw (RuntimeException)
{
@@ -956,19 +956,19 @@ Reference< security::XAccessControlContext > AccessController::getContext()
}
// XServiceInfo impl
-//__________________________________________________________________________________________________
+
OUString AccessController::getImplementationName()
throw (RuntimeException)
{
return OUString("com.sun.star.security.comp.stoc.AccessController");
}
-//__________________________________________________________________________________________________
+
sal_Bool AccessController::supportsService( OUString const & serviceName )
throw (RuntimeException)
{
return cppu::supportsService(this, serviceName);
}
-//__________________________________________________________________________________________________
+
Sequence< OUString > AccessController::getSupportedServiceNames()
throw (RuntimeException)
{
diff --git a/stoc/source/security/file_policy.cxx b/stoc/source/security/file_policy.cxx
index 9d646a78f2e2..d5bc3c966880 100644
--- a/stoc/source/security/file_policy.cxx
+++ b/stoc/source/security/file_policy.cxx
@@ -93,7 +93,7 @@ public:
virtual Sequence< OUString > SAL_CALL getSupportedServiceNames()
throw (RuntimeException);
};
-//__________________________________________________________________________________________________
+
FilePolicy::FilePolicy( Reference< XComponentContext > const & xComponentContext )
SAL_THROW(())
: t_helper( m_mutex )
@@ -101,11 +101,11 @@ FilePolicy::FilePolicy( Reference< XComponentContext > const & xComponentContext
, m_ac( xComponentContext )
, m_init( false )
{}
-//__________________________________________________________________________________________________
+
FilePolicy::~FilePolicy()
SAL_THROW(())
{}
-//__________________________________________________________________________________________________
+
void FilePolicy::disposing()
{
m_userPermissions.clear();
@@ -113,7 +113,7 @@ void FilePolicy::disposing()
m_xComponentContext.clear();
}
-//__________________________________________________________________________________________________
+
Sequence< Any > FilePolicy::getPermissions(
OUString const & userId )
throw (RuntimeException)
@@ -135,7 +135,7 @@ Sequence< Any > FilePolicy::getPermissions(
return iFind->second;
}
}
-//__________________________________________________________________________________________________
+
Sequence< Any > FilePolicy::getDefaultPermissions()
throw (RuntimeException)
{
@@ -193,7 +193,7 @@ public:
void assureToken( sal_Unicode token )
SAL_THROW( (RuntimeException) );
};
-//__________________________________________________________________________________________________
+
void PolicyReader::assureToken( sal_Unicode token )
SAL_THROW( (RuntimeException) )
{
@@ -207,7 +207,7 @@ void PolicyReader::assureToken( sal_Unicode token )
buf.append( "<!" );
error( buf.makeStringAndClear() );
}
-//__________________________________________________________________________________________________
+
OUString PolicyReader::assureQuotedToken()
SAL_THROW( (RuntimeException) )
{
@@ -216,7 +216,7 @@ OUString PolicyReader::assureQuotedToken()
error( "unexpected end of file!" );
return token;
}
-//__________________________________________________________________________________________________
+
OUString PolicyReader::getQuotedToken()
SAL_THROW( (RuntimeException) )
{
@@ -233,7 +233,7 @@ OUString PolicyReader::getQuotedToken()
}
return buf.makeStringAndClear();
}
-//__________________________________________________________________________________________________
+
OUString PolicyReader::assureToken()
SAL_THROW( (RuntimeException) )
{
@@ -242,7 +242,7 @@ OUString PolicyReader::assureToken()
error( "unexpected end of file!" );
return token;
}
-//__________________________________________________________________________________________________
+
OUString PolicyReader::getToken()
SAL_THROW( (RuntimeException) )
{
@@ -259,7 +259,7 @@ OUString PolicyReader::getToken()
back( c );
return buf.makeStringAndClear();
}
-//__________________________________________________________________________________________________
+
void PolicyReader::skipWhiteSpace()
SAL_THROW( (RuntimeException) )
{
@@ -321,7 +321,7 @@ void PolicyReader::skipWhiteSpace()
back( c );
}
}
-//__________________________________________________________________________________________________
+
sal_Unicode PolicyReader::get()
SAL_THROW( (RuntimeException) )
{
@@ -358,7 +358,7 @@ sal_Unicode PolicyReader::get()
}
return (m_line.getConstArray()[ m_pos++ ]);
}
-//__________________________________________________________________________________________________
+
void PolicyReader::error( OUString const & msg )
SAL_THROW( (RuntimeException) )
{
@@ -373,7 +373,7 @@ void PolicyReader::error( OUString const & msg )
buf.append( msg );
throw RuntimeException( buf.makeStringAndClear(), Reference< XInterface >() );
}
-//__________________________________________________________________________________________________
+
PolicyReader::PolicyReader( OUString const & fileName, AccessControl & ac )
SAL_THROW( (RuntimeException) )
: m_fileName( fileName )
@@ -391,7 +391,7 @@ PolicyReader::PolicyReader( OUString const & fileName, AccessControl & ac )
throw RuntimeException( buf.makeStringAndClear(), Reference< XInterface >() );
}
}
-//__________________________________________________________________________________________________
+
PolicyReader::~PolicyReader()
SAL_THROW(())
{
@@ -411,7 +411,7 @@ PolicyReader::~PolicyReader()
#define s_runtimePermission "com.sun.star.security.RuntimePermission"
#define s_allPermission "com.sun.star.security.AllPermission"
-//__________________________________________________________________________________________________
+
void FilePolicy::refresh()
throw (RuntimeException)
{
@@ -517,19 +517,19 @@ void FilePolicy::refresh()
m_userPermissions = userPermissions;
}
-//__________________________________________________________________________________________________
+
OUString FilePolicy::getImplementationName()
throw (RuntimeException)
{
return OUString(IMPL_NAME);
}
-//__________________________________________________________________________________________________
+
sal_Bool FilePolicy::supportsService( OUString const & serviceName )
throw (RuntimeException)
{
return cppu::supportsService(this, serviceName);
}
-//__________________________________________________________________________________________________
+
Sequence< OUString > FilePolicy::getSupportedServiceNames()
throw (RuntimeException)
{
diff --git a/stoc/source/security/permissions.cxx b/stoc/source/security/permissions.cxx
index f2b8e3120152..0e6060619fbf 100644
--- a/stoc/source/security/permissions.cxx
+++ b/stoc/source/security/permissions.cxx
@@ -44,7 +44,7 @@ using namespace ::com::sun::star::uno;
namespace stoc_sec
{
-//--------------------------------------------------------------------------------------------------
+
static inline sal_Int32 makeMask(
OUString const & items, char const * const * strings ) SAL_THROW(())
{
@@ -81,7 +81,7 @@ static inline sal_Int32 makeMask(
while (n >= 0); // all items
return mask;
}
-//--------------------------------------------------------------------------------------------------
+
static inline OUString makeStrings(
sal_Int32 mask, char const * const * strings ) SAL_THROW(())
{
@@ -126,9 +126,9 @@ public:
virtual bool implies( Permission const & perm ) const SAL_THROW(());
virtual OUString toString() const SAL_THROW(());
};
-//__________________________________________________________________________________________________
+
char const * SocketPermission::s_actions [] = { "accept", "connect", "listen", "resolve", 0 };
-//__________________________________________________________________________________________________
+
SocketPermission::SocketPermission(
connection::SocketPermission const & perm,
::rtl::Reference< Permission > const & next )
@@ -170,7 +170,7 @@ SocketPermission::SocketPermission(
m_host = m_host.copy( 0, colon );
}
}
-//__________________________________________________________________________________________________
+
inline bool SocketPermission::resolveHost() const SAL_THROW(())
{
if (m_resolveErr)
@@ -196,7 +196,7 @@ inline bool SocketPermission::resolveHost() const SAL_THROW(())
}
return m_resolvedHost;
}
-//__________________________________________________________________________________________________
+
bool SocketPermission::implies( Permission const & perm ) const SAL_THROW(())
{
// check type
@@ -238,7 +238,7 @@ bool SocketPermission::implies( Permission const & perm ) const SAL_THROW(())
return false;
return m_ip.equals( demanded.m_ip );
}
-//__________________________________________________________________________________________________
+
OUString SocketPermission::toString() const SAL_THROW(())
{
OUStringBuffer buf( 48 );
@@ -290,9 +290,9 @@ public:
virtual bool implies( Permission const & perm ) const SAL_THROW(());
virtual OUString toString() const SAL_THROW(());
};
-//__________________________________________________________________________________________________
+
char const * FilePermission::s_actions [] = { "read", "write", "execute", "delete", 0 };
-//--------------------------------------------------------------------------------------------------
+
static OUString const & getWorkingDir() SAL_THROW(())
{
static OUString * s_workingDir = 0;
@@ -310,7 +310,7 @@ static OUString const & getWorkingDir() SAL_THROW(())
}
return *s_workingDir;
}
-//__________________________________________________________________________________________________
+
FilePermission::FilePermission(
io::FilePermission const & perm,
::rtl::Reference< Permission > const & next )
@@ -355,7 +355,7 @@ FilePermission::FilePermission(
#endif
}
}
-//__________________________________________________________________________________________________
+
bool FilePermission::implies( Permission const & perm ) const SAL_THROW(())
{
// check type
@@ -414,7 +414,7 @@ bool FilePermission::implies( Permission const & perm ) const SAL_THROW(())
}
return false;
}
-//__________________________________________________________________________________________________
+
OUString FilePermission::toString() const SAL_THROW(())
{
OUStringBuffer buf( 48 );
@@ -446,7 +446,7 @@ public:
virtual bool implies( Permission const & perm ) const SAL_THROW(());
virtual OUString toString() const SAL_THROW(());
};
-//__________________________________________________________________________________________________
+
bool RuntimePermission::implies( Permission const & perm ) const SAL_THROW(())
{
// check type
@@ -457,7 +457,7 @@ bool RuntimePermission::implies( Permission const & perm ) const SAL_THROW(())
// check name
return m_name.equals( demanded.m_name );
}
-//__________________________________________________________________________________________________
+
OUString RuntimePermission::toString() const SAL_THROW(())
{
OUStringBuffer buf( 48 );
@@ -469,12 +469,12 @@ OUString RuntimePermission::toString() const SAL_THROW(())
//##################################################################################################
-//__________________________________________________________________________________________________
+
bool AllPermission::implies( Permission const & ) const SAL_THROW(())
{
return true;
}
-//__________________________________________________________________________________________________
+
OUString AllPermission::toString() const SAL_THROW(())
{
return OUString("com.sun.star.security.AllPermission");
@@ -482,7 +482,7 @@ OUString AllPermission::toString() const SAL_THROW(())
//##################################################################################################
-//__________________________________________________________________________________________________
+
PermissionCollection::PermissionCollection(
Sequence< Any > const & permissions, PermissionCollection const & addition )
SAL_THROW( (RuntimeException) )
@@ -525,7 +525,7 @@ PermissionCollection::PermissionCollection(
}
}
#ifdef __DIAGNOSE
-//__________________________________________________________________________________________________
+
Sequence< OUString > PermissionCollection::toStrings() const SAL_THROW(())
{
vector< OUString > strings;
@@ -538,7 +538,7 @@ Sequence< OUString > PermissionCollection::toStrings() const SAL_THROW(())
strings.empty() ? 0 : &strings[ 0 ], strings.size() );
}
#endif
-//__________________________________________________________________________________________________
+
inline static bool __implies(
::rtl::Reference< Permission > const & head, Permission const & demanded ) SAL_THROW(())
{
@@ -551,7 +551,7 @@ inline static bool __implies(
}
#ifdef __DIAGNOSE
-//--------------------------------------------------------------------------------------------------
+
static void demanded_diag(
Permission const & perm )
SAL_THROW(())
@@ -565,7 +565,7 @@ static void demanded_diag(
OSL_TRACE( "%s", str.getStr() );
}
#endif
-//--------------------------------------------------------------------------------------------------
+
static void throwAccessControlException(
Permission const & perm, Any const & demanded_perm )
SAL_THROW( (security::AccessControlException) )
diff --git a/stoc/source/servicemanager/servicemanager.cxx b/stoc/source/servicemanager/servicemanager.cxx
index 0abf06d80198..3f576004a8b5 100644
--- a/stoc/source/servicemanager/servicemanager.cxx
+++ b/stoc/source/servicemanager/servicemanager.cxx
@@ -206,13 +206,13 @@ public:
virtual sal_Bool SAL_CALL hasPropertyByName( OUString const & name )
throw (RuntimeException);
};
-//__________________________________________________________________________________________________
+
Sequence< beans::Property > PropertySetInfo_Impl::getProperties()
throw (RuntimeException)
{
return m_properties;
}
-//__________________________________________________________________________________________________
+
beans::Property PropertySetInfo_Impl::getPropertyByName( OUString const & name )
throw (beans::UnknownPropertyException, RuntimeException)
{
@@ -225,7 +225,7 @@ beans::Property PropertySetInfo_Impl::getPropertyByName( OUString const & name )
throw beans::UnknownPropertyException(
"unknown property: " + name, Reference< XInterface >() );
}
-//__________________________________________________________________________________________________
+
sal_Bool PropertySetInfo_Impl::hasPropertyByName( OUString const & name )
throw (RuntimeException)
{
@@ -481,7 +481,7 @@ private:
};
-//______________________________________________________________________________
+
inline bool OServiceManager::is_disposed() const
SAL_THROW( (lang::DisposedException) )
{
@@ -489,7 +489,7 @@ inline bool OServiceManager::is_disposed() const
return (m_bInDisposing || rBHelper.bDisposed);
}
-//______________________________________________________________________________
+
inline void OServiceManager::check_undisposed() const
SAL_THROW( (lang::DisposedException) )
{
@@ -609,7 +609,7 @@ public:
throw (beans::UnknownPropertyException, lang::WrappedTargetException, RuntimeException)
{ Reference< XPropertySet >(getRoot(), UNO_QUERY_THROW)->removeVetoableChangeListener( PropertyName, aListener ); }
};
-//__________________________________________________________________________________________________
+
void SAL_CALL OServiceManagerWrapper::setPropertyValue(
const OUString& PropertyName, const Any& aValue )
throw (beans::UnknownPropertyException, beans::PropertyVetoException,
@@ -635,7 +635,7 @@ void SAL_CALL OServiceManagerWrapper::setPropertyValue(
Reference< XPropertySet >(getRoot(), UNO_QUERY_THROW)->setPropertyValue( PropertyName, aValue );
}
}
-//__________________________________________________________________________________________________
+
Any SAL_CALL OServiceManagerWrapper::getPropertyValue(
const OUString& PropertyName )
throw (beans::UnknownPropertyException, lang::WrappedTargetException, RuntimeException)
@@ -653,7 +653,7 @@ Any SAL_CALL OServiceManagerWrapper::getPropertyValue(
return Reference< XPropertySet >(getRoot(), UNO_QUERY_THROW)->getPropertyValue( PropertyName );
}
}
-//__________________________________________________________________________________________________
+
void OServiceManagerWrapper::disposing()
{
m_xContext.clear();
@@ -661,9 +661,9 @@ void OServiceManagerWrapper::disposing()
// no m_root->dispose(), because every context disposes its service manager...
m_root.clear();
}
-//__________________________________________________________________________________________________
+
OServiceManagerWrapper::~OServiceManagerWrapper() SAL_THROW(()) {}
-//__________________________________________________________________________________________________
+
OServiceManagerWrapper::OServiceManagerWrapper(
Reference< XComponentContext > const & xContext )
SAL_THROW( (RuntimeException) )
diff --git a/stoc/source/typeconv/convert.cxx b/stoc/source/typeconv/convert.cxx
index 19d235337797..0228db3a0edf 100644
--- a/stoc/source/typeconv/convert.cxx
+++ b/stoc/source/typeconv/convert.cxx
@@ -96,7 +96,7 @@ static inline double unsigned_int64_to_double( sal_uInt64 n ) SAL_THROW(())
#endif
-//--------------------------------------------------------------------------------------------------
+
static inline double round( double aVal )
{
sal_Bool bPos = (aVal >= 0.0); //
@@ -107,7 +107,7 @@ static inline double round( double aVal )
return (bPos ? aVal : -aVal);
}
-//--------------------------------------------------------------------------------------------------
+
static sal_Bool getNumericValue( double & rfVal, const OUString & rStr )
{
double fRet = rStr.toDouble();
@@ -302,7 +302,7 @@ Sequence< OUString > TypeConverter_Impl::getSupportedServiceNames(void) throw( R
return stoc_services::tcv_getSupportedServiceNames();
}
-//--------------------------------------------------------------------------------------------------
+
sal_Int64 TypeConverter_Impl::toHyper( const Any& rAny, sal_Int64 min, sal_uInt64 max )
throw( CannotConvertException )
{
@@ -417,7 +417,7 @@ sal_Int64 TypeConverter_Impl::toHyper( const Any& rAny, sal_Int64 min, sal_uInt6
Reference<XInterface>(), aDestinationClass, FailReason::OUT_OF_RANGE, 0 );
}
-//--------------------------------------------------------------------------------------------------
+
double TypeConverter_Impl::toDouble( const Any& rAny, double min, double max ) const
throw( CannotConvertException )
{
@@ -498,7 +498,7 @@ double TypeConverter_Impl::toDouble( const Any& rAny, double min, double max ) c
Reference< XInterface >(), aDestinationClass, FailReason::OUT_OF_RANGE, 0 );
}
-//--------------------------------------------------------------------------------------------------
+
Any SAL_CALL TypeConverter_Impl::convertTo( const Any& rVal, const Type& aDestType )
throw( IllegalArgumentException, CannotConvertException, RuntimeException)
{
@@ -692,7 +692,7 @@ Any SAL_CALL TypeConverter_Impl::convertTo( const Any& rVal, const Type& aDestTy
Reference< XInterface >(), aDestinationClass, FailReason::INVALID, 0 );
}
-//--------------------------------------------------------------------------------------------------
+
Any TypeConverter_Impl::convertToSimpleType( const Any& rVal, TypeClass aDestinationClass )
throw( IllegalArgumentException, CannotConvertException, RuntimeException )
{
diff --git a/stoc/test/testiadapter.cxx b/stoc/test/testiadapter.cxx
index 1f850cb3917c..679d937d6463 100644
--- a/stoc/test/testiadapter.cxx
+++ b/stoc/test/testiadapter.cxx
@@ -300,7 +300,7 @@ public:
virtual sal_Bool SAL_CALL hasMethod( const OUString & rName ) throw(::com::sun::star::uno::RuntimeException);
virtual sal_Bool SAL_CALL hasProperty( const OUString & rName ) throw(::com::sun::star::uno::RuntimeException);
};
-//__________________________________________________________________________________________________
+
Any XLB_Invocation::invoke( const OUString & rFunctionName,
const Sequence< Any > & rParams,
Sequence< sal_Int16 > & rOutParamIndex,
@@ -539,7 +539,7 @@ Any XLB_Invocation::invoke( const OUString & rFunctionName,
return aRet;
}
-//__________________________________________________________________________________________________
+
void XLB_Invocation::setValue( const OUString & rName, const Any & rValue )
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::script::CannotConvertException, ::com::sun::star::reflection::InvocationTargetException, ::com::sun::star::uno::RuntimeException)
{
@@ -580,7 +580,7 @@ void XLB_Invocation::setValue( const OUString & rName, const Any & rValue )
else if ( rName == "RuntimeException" )
_xLBT->setRuntimeException( *(const sal_Int32 *)rValue.getValue() );
}
-//__________________________________________________________________________________________________
+
Any XLB_Invocation::getValue( const OUString & rName )
throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::uno::RuntimeException)
{
@@ -629,7 +629,7 @@ Any XLB_Invocation::getValue( const OUString & rName )
aRet <<= _xLBT->getRuntimeException();
return aRet;
}
-//__________________________________________________________________________________________________
+
sal_Bool XLB_Invocation::hasMethod( const OUString & rName )
throw(::com::sun::star::uno::RuntimeException)
{
@@ -641,7 +641,7 @@ sal_Bool XLB_Invocation::hasMethod( const OUString & rName )
rName == "release" ||
rName == "queryInterface" );
}
-//__________________________________________________________________________________________________
+
sal_Bool XLB_Invocation::hasProperty( const OUString & rName )
throw(::com::sun::star::uno::RuntimeException)
{
@@ -667,7 +667,7 @@ sal_Bool XLB_Invocation::hasProperty( const OUString & rName )
//##################################################################################################
-//__________________________________________________________________________________________________
+
void Test_Impl::setValues( sal_Bool bBool, sal_Unicode cChar, sal_Int8 nByte,
sal_Int16 nShort, sal_uInt16 nUShort,
sal_Int32 nLong, sal_uInt32 nULong,
@@ -685,7 +685,7 @@ void Test_Impl::setValues( sal_Bool bBool, sal_Unicode cChar, sal_Int8 nByte,
eEnum, rStr, xTest, rAny, rSequence );
_aStructData = rStruct;
}
-//__________________________________________________________________________________________________
+
test::TestData Test_Impl::setValues2( sal_Bool& bBool, sal_Unicode& cChar, sal_Int8& nByte,
sal_Int16& nShort, sal_uInt16& nUShort,
sal_Int32& nLong, sal_uInt32& nULong,
@@ -704,7 +704,7 @@ test::TestData Test_Impl::setValues2( sal_Bool& bBool, sal_Unicode& cChar, sal_I
_aStructData = rStruct;
return _aStructData;
}
-//__________________________________________________________________________________________________
+
test::TestData Test_Impl::getValues( sal_Bool& bBool, sal_Unicode& cChar, sal_Int8& nByte,
sal_Int16& nShort, sal_uInt16& nUShort,
sal_Int32& nLong, sal_uInt32& nULong,
@@ -849,7 +849,7 @@ sal_Bool performTest( const Reference<XLanguageBindingTest > & xLBT )
return sal_False;
}
-//__________________________________________________________________________________________________
+
test::TestData Test_Impl::raiseException( sal_Bool& /*bBool*/, sal_Unicode& /*cChar*/, sal_Int8& /*nByte*/, sal_Int16& /*nShort*/, sal_uInt16& /*nUShort*/, sal_Int32& /*nLong*/, sal_uInt32& /*nULong*/, sal_Int64& /*nHyper*/, sal_uInt64& /*nUHyper*/, float& /*fFloat*/, double& /*fDouble*/, test::TestEnum& /*eEnum*/, OUString& /*aString*/, ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& /*xInterface*/, ::com::sun::star::uno::Any& /*aAny*/, ::com::sun::star::uno::Sequence< test::TestElement >& /*aSequence*/, test::TestData& /*aStruct*/ )
throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException)
{
@@ -859,7 +859,7 @@ test::TestData Test_Impl::raiseException( sal_Bool& /*bBool*/, sal_Unicode& /*cC
aExc.Context = *this;
throw aExc;
}
-//__________________________________________________________________________________________________
+
sal_Int32 Test_Impl::getRuntimeException() throw(::com::sun::star::uno::RuntimeException)
{
RuntimeException aExc;
@@ -867,7 +867,7 @@ sal_Int32 Test_Impl::getRuntimeException() throw(::com::sun::star::uno::RuntimeE
aExc.Context = *this;
throw aExc;
}
-//__________________________________________________________________________________________________
+
void Test_Impl::setRuntimeException( sal_Int32 /*_runtimeexception*/ ) throw(::com::sun::star::uno::RuntimeException)
{
RuntimeException aExc;
diff --git a/stoc/test/testproxyfac.cxx b/stoc/test/testproxyfac.cxx
index d564ba63e832..682afb56a927 100644
--- a/stoc/test/testproxyfac.cxx
+++ b/stoc/test/testproxyfac.cxx
@@ -84,7 +84,7 @@ public:
{ return makeAny( name ); }
};
-//______________________________________________________________________________
+
Any TargetObject::queryInterface( Type const & type )
throw (RuntimeException)
{