step2.cxx (79aad27f) | step2.cxx (0848378b) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 410 unchanged lines hidden (view full) --- 419 if( aAny.getValueType().getTypeClass() == TypeClass_INTERFACE ) 420 { 421 Reference< XInterface > x = *(Reference< XInterface >*)aAny.getValue(); 422 Reference< XDefaultMethod > xDfltMethod( x, UNO_QUERY ); 423 424 rtl::OUString sDefaultMethod; 425 if ( xDfltMethod.is() ) 426 sDefaultMethod = xDfltMethod->getDefaultMethodName(); | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 410 unchanged lines hidden (view full) --- 419 if( aAny.getValueType().getTypeClass() == TypeClass_INTERFACE ) 420 { 421 Reference< XInterface > x = *(Reference< XInterface >*)aAny.getValue(); 422 Reference< XDefaultMethod > xDfltMethod( x, UNO_QUERY ); 423 424 rtl::OUString sDefaultMethod; 425 if ( xDfltMethod.is() ) 426 sDefaultMethod = xDfltMethod->getDefaultMethodName(); |
427 if ( sDefaultMethod.getLength() ) | 427 if ( !sDefaultMethod.isEmpty() ) |
428 { 429 SbxVariable* meth = pUnoObj->Find( sDefaultMethod, SbxCLASS_METHOD ); 430 if( meth != NULL ) 431 pInfo = meth->GetInfo(); 432 if( pInfo ) 433 bError_ = false; 434 } 435 } --- 151 unchanged lines hidden (view full) --- 587 588 Reference< XDefaultMethod > xDfltMethod( x, UNO_QUERY ); 589 590 if ( xDfltMethod.is() ) 591 sDefaultMethod = xDfltMethod->getDefaultMethodName(); 592 else if( xIndexAccess.is() ) 593 sDefaultMethod = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "getByIndex" ) ); 594 | 428 { 429 SbxVariable* meth = pUnoObj->Find( sDefaultMethod, SbxCLASS_METHOD ); 430 if( meth != NULL ) 431 pInfo = meth->GetInfo(); 432 if( pInfo ) 433 bError_ = false; 434 } 435 } --- 151 unchanged lines hidden (view full) --- 587 588 Reference< XDefaultMethod > xDfltMethod( x, UNO_QUERY ); 589 590 if ( xDfltMethod.is() ) 591 sDefaultMethod = xDfltMethod->getDefaultMethodName(); 592 else if( xIndexAccess.is() ) 593 sDefaultMethod = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "getByIndex" ) ); 594 |
595 if ( sDefaultMethod.getLength() ) | 595 if ( !sDefaultMethod.isEmpty() ) |
596 { 597 SbxVariable* meth = pUnoObj->Find( sDefaultMethod, SbxCLASS_METHOD ); 598 SbxVariableRef refTemp = meth; 599 if ( refTemp ) 600 { 601 meth->SetParameters( pPar ); 602 SbxVariable* pNew = new SbxMethod( *(SbxMethod*)meth ); 603 pElem = pNew; --- 698 unchanged lines hidden --- | 596 { 597 SbxVariable* meth = pUnoObj->Find( sDefaultMethod, SbxCLASS_METHOD ); 598 SbxVariableRef refTemp = meth; 599 if ( refTemp ) 600 { 601 meth->SetParameters( pPar ); 602 SbxVariable* pNew = new SbxMethod( *(SbxMethod*)meth ); 603 pElem = pNew; --- 698 unchanged lines hidden --- |