WaE: Werror=shadow

Change-Id: I7f1bddbed85076f1c909d0d9f4ecdd1cda6f1880
This commit is contained in:
Caolán McNamara
2013-03-15 20:49:11 +00:00
parent 5b554b4a03
commit 4158ae52fb

View File

@@ -617,16 +617,16 @@ SbxVariable* SbiRuntime::CheckArray( SbxVariable* pElem )
if ( pDflt )
{
pDflt->Broadcast( SBX_HINT_DATAWANTED );
SbxBaseRef pObj = (SbxBase*)pDflt->GetObject();
if( pObj )
SbxBaseRef pDfltObj = (SbxBase*)pDflt->GetObject();
if( pDfltObj )
{
if( pObj->ISA(SbUnoObject) )
if( pDfltObj->ISA(SbUnoObject) )
{
pUnoObj = (SbUnoObject*)(SbxBase*)pObj;
Any aAny = pUnoObj->getUnoAny();
pUnoObj = (SbUnoObject*)(SbxBase*)pDfltObj;
Any aUnoAny = pUnoObj->getUnoAny();
if( aAny.getValueType().getTypeClass() == TypeClass_INTERFACE )
x = *(Reference< XInterface >*)aAny.getValue();
if( aUnoAny.getValueType().getTypeClass() == TypeClass_INTERFACE )
x = *(Reference< XInterface >*)aUnoAny.getValue();
pElem = pDflt;
}
}