INTEGRATION: CWS sb88 (1.12.10); FILE MERGED

2008/06/03 15:29:50 sb 1.12.10.1: #i89553 applied patch by cmc
This commit is contained in:
Rüdiger Timm 2008-06-16 12:51:35 +00:00
parent 2dfe5bceee
commit 677d78cec5

View File

@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite * OpenOffice.org - a multi-platform office productivity suite
* *
* $RCSfile: anypair.cxx,v $ * $RCSfile: anypair.cxx,v $
* $Revision: 1.12 $ * $Revision: 1.13 $
* *
* This file is part of OpenOffice.org. * This file is part of OpenOffice.org.
* *
@ -518,21 +518,6 @@ namespace configmgr
return anypair_any_assign_Data(&_pAnyPair->desc, &_pAnyPair->second, cfgmgr_SELECT_SECOND, _pUnoAny); return anypair_any_assign_Data(&_pAnyPair->desc, &_pAnyPair->second, cfgmgr_SELECT_SECOND, _pUnoAny);
} }
// -----------------------------------------------------------------------------
sal_Bool anypair_assign_both(cfgmgr_AnyPair* _pAnyPair, uno_Any const * _pUnoAny)
{
CFG_PRECOND( _pAnyPair != NULL );
CFG_PRECOND( _pUnoAny != NULL );
sal_Bool bOK = anypair_assign_first(_pAnyPair,_pUnoAny);
if (bOK)
{
// same type - second assignment must succeed as well
OSL_VERIFY( anypair_assign_second(_pAnyPair,_pUnoAny) );
}
return bOK;
}
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
void anypair_assign(cfgmgr_AnyPair* _pAnyPair, cfgmgr_AnyPair const * _pAnyPairFrom) void anypair_assign(cfgmgr_AnyPair* _pAnyPair, cfgmgr_AnyPair const * _pAnyPairFrom)
{ {
@ -591,14 +576,6 @@ namespace configmgr
return uno::Any( aTmpAny.pData, aTmpAny.pType ); return uno::Any( aTmpAny.pData, aTmpAny.pType );
} }
// -----------------------------------------------------------------------------
// -----------------------------------------------------------------------------
// ctors
AnyPair::AnyPair()
{
anypair_construct_default(&m_aAnyPair);
}
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
AnyPair::AnyPair(uno::Type const& _aType) // one Type, any's are null AnyPair::AnyPair(uno::Type const& _aType) // one Type, any's are null
{ {
@ -663,20 +640,6 @@ namespace configmgr
return anypair_assign_second(&m_aAnyPair,&_aAny); return anypair_assign_second(&m_aAnyPair,&_aAny);
} }
// -----------------------------------------------------------------------------
sal_Bool AnyPair::setValue(uno::Any const& _aAny, SelectMember _select)
{
switch (_select)
{
case SELECT_FIRST: return anypair_assign_first (&m_aAnyPair,&_aAny);
case SELECT_SECOND: return anypair_assign_second(&m_aAnyPair,&_aAny);
case SELECT_BOTH: return anypair_assign_both (&m_aAnyPair,&_aAny);
default: OSL_ENSURE(false, "AnyPair: Unknown member selector");
return false;
}
}
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
void AnyPair::clear(SelectMember _select) void AnyPair::clear(SelectMember _select)
{ {