INTEGRATION: CWS ooo20031110 (1.12.8); FILE MERGED

2003/11/16 03:38:17 waratah 1.12.8.2: #i22301# Correct for scoping code issue, conflict with standard
2003/11/03 23:38:30 waratah 1.12.8.1: #i21906# add class keyword after friend and also add a return type of sal_Bool to one function implicitly int return type
This commit is contained in:
Rüdiger Timm 2003-12-01 16:59:47 +00:00
parent d2d71dcede
commit f1b5d5fe90

View file

@ -2,9 +2,9 @@
* *
* $RCSfile: iafactory.cxx,v $ * $RCSfile: iafactory.cxx,v $
* *
* $Revision: 1.12 $ * $Revision: 1.13 $
* *
* last change: $Author: obo $ $Date: 2003-09-04 09:07:27 $ * last change: $Author: rt $ $Date: 2003-12-01 17:59:47 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
@ -293,7 +293,7 @@ static inline void constructRuntimeException(
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
static inline type_equals( static inline sal_Bool type_equals(
typelib_TypeDescriptionReference * pType1, typelib_TypeDescriptionReference * pType1,
typelib_TypeDescriptionReference * pType2 ) typelib_TypeDescriptionReference * pType2 )
SAL_THROW( () ) SAL_THROW( () )
@ -513,7 +513,8 @@ void AdapterImpl::invoke(
&pInParamsSeq, m_pFactory->m_pAnySeqTD, 0, nParams, 0 ); &pInParamsSeq, m_pFactory->m_pAnySeqTD, 0, nParams, 0 );
uno_Any * pInAnys = (uno_Any *)pInParamsSeq->elements; uno_Any * pInAnys = (uno_Any *)pInParamsSeq->elements;
sal_Int32 nOutParams = 0; sal_Int32 nOutParams = 0;
for ( sal_Int32 nPos = nParams; nPos--; ) sal_Int32 nPos;
for ( nPos = nParams; nPos--; )
{ {
typelib_MethodParameter const & rParam = pFormalParams[nPos]; typelib_MethodParameter const & rParam = pFormalParams[nPos];
if (rParam.bIn) // is in/inout param if (rParam.bIn) // is in/inout param
@ -865,11 +866,13 @@ static inline AdapterImpl * lookup_adapter(
{ {
AdapterImpl * that = reinterpret_cast< AdapterImpl * >( *iPos ); AdapterImpl * that = reinterpret_cast< AdapterImpl * >( *iPos );
// iterate thru all types if that is a matching adapter // iterate thru all types if that is a matching adapter
for ( sal_Int32 nPosTypes = nTypes; nPosTypes--; ) sal_Int32 nPosTypes;
for ( nPosTypes = nTypes; nPosTypes--; )
{ {
Type const & rType = pTypes[ nPosTypes ]; Type const & rType = pTypes[ nPosTypes ];
// find in adapter's type list // find in adapter's type list
for ( sal_Int32 nPos = that->m_nInterfaces; nPos--; ) sal_Int32 nPos;
for ( nPos = that->m_nInterfaces; nPos--; )
{ {
if (::typelib_typedescriptionreference_isAssignableFrom( if (::typelib_typedescriptionreference_isAssignableFrom(
rType.getTypeLibType(), rType.getTypeLibType(),