Remove redundant Reference<> from within UnoType<> uses
Change-Id: I1aeb9c73c284e39f371e49ded98e8dba0d055056
This commit is contained in:
parent
3e672693e3
commit
31e24f487e
@ -864,8 +864,7 @@ css::uno::Reference< css::uno::XInterface > Bridge::getInstance(
|
||||
" character");
|
||||
}
|
||||
}
|
||||
css::uno::TypeDescription ifc(
|
||||
cppu::UnoType< css::uno::Reference< css::uno::XInterface > >::get());
|
||||
css::uno::TypeDescription ifc(cppu::UnoType<css::uno::XInterface>::get());
|
||||
typelib_TypeDescription * p = ifc.get();
|
||||
std::vector< BinaryAny > inArgs;
|
||||
inArgs.push_back(
|
||||
|
@ -215,8 +215,7 @@ void Reader::readMessage(Unmarshal & unmarshal) {
|
||||
css::uno::UnoInterfaceReference cc;
|
||||
if (ccMode) {
|
||||
css::uno::TypeDescription t(
|
||||
cppu::UnoType< css::uno::Reference< css::uno::XCurrentContext > >::
|
||||
get());
|
||||
cppu::UnoType<css::uno::XCurrentContext>::get());
|
||||
cc.set(
|
||||
*static_cast< uno_Interface ** >(
|
||||
unmarshal.readValue(t).getValue(t)));
|
||||
|
@ -1598,7 +1598,7 @@ sal_Bool SAL_CALL ChartController::select( const uno::Any& rSelection )
|
||||
bSuccess = true;
|
||||
}
|
||||
}
|
||||
else if ( rType == cppu::UnoType< uno::Reference< drawing::XShape > >::get() )
|
||||
else if ( rType == cppu::UnoType<drawing::XShape>::get() )
|
||||
{
|
||||
uno::Reference< drawing::XShape > xShape;
|
||||
if ( ( rSelection >>= xShape ) && m_aSelection.setSelection( xShape ) )
|
||||
@ -1664,7 +1664,7 @@ sal_Bool SAL_CALL ChartController::select( const uno::Any& rSelection )
|
||||
return; //behave passive if already disposed or suspended
|
||||
|
||||
//--add listener
|
||||
m_aLifeTimeManager.m_aListenerContainer.addInterface( cppu::UnoType< uno::Reference< view::XSelectionChangeListener > >::get(), xListener );
|
||||
m_aLifeTimeManager.m_aListenerContainer.addInterface( cppu::UnoType<view::XSelectionChangeListener>::get(), xListener );
|
||||
}
|
||||
|
||||
void SAL_CALL ChartController
|
||||
@ -1677,14 +1677,14 @@ sal_Bool SAL_CALL ChartController::select( const uno::Any& rSelection )
|
||||
return; //behave passive if already disposed or suspended
|
||||
|
||||
//--remove listener
|
||||
m_aLifeTimeManager.m_aListenerContainer.removeInterface( cppu::UnoType< uno::Reference< view::XSelectionChangeListener > >::get(), xListener );
|
||||
m_aLifeTimeManager.m_aListenerContainer.removeInterface( cppu::UnoType<view::XSelectionChangeListener>::get(), xListener );
|
||||
}
|
||||
|
||||
void ChartController
|
||||
::impl_notifySelectionChangeListeners()
|
||||
{
|
||||
::cppu::OInterfaceContainerHelper* pIC = m_aLifeTimeManager.m_aListenerContainer
|
||||
.getContainer( cppu::UnoType< uno::Reference< view::XSelectionChangeListener > >::get() );
|
||||
.getContainer( cppu::UnoType<view::XSelectionChangeListener>::get() );
|
||||
if( pIC )
|
||||
{
|
||||
uno::Reference< view::XSelectionSupplier > xSelectionSupplier(this);
|
||||
|
@ -1522,7 +1522,7 @@ bool implUpdateObject(const Reference< XRowUpdate >& _rxUpdatedObject,
|
||||
break;
|
||||
|
||||
case TypeClass_INTERFACE:
|
||||
if (_rValue.getValueType() == cppu::UnoType<Reference< XInputStream> >::get())
|
||||
if (_rValue.getValueType() == cppu::UnoType<XInputStream>::get())
|
||||
{
|
||||
Reference< XInputStream > xStream;
|
||||
_rValue >>= xStream;
|
||||
@ -1629,7 +1629,7 @@ bool implSetObject( const Reference< XParameters >& _rxParameters,
|
||||
break;
|
||||
|
||||
case TypeClass_INTERFACE:
|
||||
if (_rValue.getValueType() == cppu::UnoType<Reference< XInputStream> >::get())
|
||||
if (_rValue.getValueType() == cppu::UnoType<XInputStream>::get())
|
||||
{
|
||||
Reference< XInputStream > xStream;
|
||||
_rValue >>= xStream;
|
||||
|
@ -90,9 +90,9 @@ Any SAL_CALL OStatementCommonBase::queryInterface( const Type & rType ) throw(Ru
|
||||
Sequence< Type > SAL_CALL OStatementCommonBase::getTypes( ) throw(RuntimeException, std::exception)
|
||||
{
|
||||
::cppu::OTypeCollection aTypes(
|
||||
::cppu::UnoType< uno::Reference< XMultiPropertySet > >::get(),
|
||||
::cppu::UnoType< uno::Reference< XFastPropertySet > >::get(),
|
||||
::cppu::UnoType< uno::Reference< XPropertySet > >::get());
|
||||
::cppu::UnoType<XMultiPropertySet>::get(),
|
||||
::cppu::UnoType<XFastPropertySet>::get(),
|
||||
::cppu::UnoType<XPropertySet>::get());
|
||||
|
||||
return concatSequences(aTypes.getTypes(),OStatementCommonBase_Base::getTypes());
|
||||
}
|
||||
|
@ -111,7 +111,7 @@ public:
|
||||
Any MyService1Impl::queryInterface( Type const & type )
|
||||
throw (RuntimeException)
|
||||
{
|
||||
if (type.equals(::cppu::UnoType< Reference< XInterface > >::get()))
|
||||
if (type.equals(::cppu::UnoType<XInterface>::get()))
|
||||
{
|
||||
// return XInterface interface
|
||||
// (resolve ambiguity by casting to lang::XTypeProvider)
|
||||
@ -119,21 +119,21 @@ Any MyService1Impl::queryInterface( Type const & type )
|
||||
static_cast< lang::XTypeProvider * >( this ) );
|
||||
return makeAny( x );
|
||||
}
|
||||
if (type.equals(::cppu::UnoType< Reference< lang::XTypeProvider > >::get()))
|
||||
if (type.equals(::cppu::UnoType<lang::XTypeProvider>::get()))
|
||||
{
|
||||
// return XInterface interface
|
||||
Reference< XInterface > x(
|
||||
static_cast< lang::XTypeProvider * >( this ) );
|
||||
return makeAny( x );
|
||||
}
|
||||
if (type.equals(::cppu::UnoType< Reference< lang::XServiceInfo > >::get()))
|
||||
if (type.equals(::cppu::UnoType<lang::XServiceInfo>::get()))
|
||||
{
|
||||
// return XServiceInfo interface
|
||||
Reference< lang::XServiceInfo > x(
|
||||
static_cast< lang::XServiceInfo * >( this ) );
|
||||
return makeAny( x );
|
||||
}
|
||||
if (type.equals(::cppu::UnoType< Reference< ::my_module::XSomething > >::get()))
|
||||
if (type.equals(::cppu::UnoType<my_module::XSomething>::get()))
|
||||
{
|
||||
// return sample interface
|
||||
Reference< ::my_module::XSomething > x(
|
||||
@ -166,9 +166,9 @@ Sequence< Type > MyService1Impl::getTypes()
|
||||
throw (RuntimeException)
|
||||
{
|
||||
Sequence< Type > seq( 3 );
|
||||
seq[ 0 ] = ::cppu::UnoType< Reference< lang::XTypeProvider > >::get();
|
||||
seq[ 1 ] = ::cppu::UnoType< Reference< lang::XServiceInfo > >::get();
|
||||
seq[ 2 ] = ::cppu::UnoType< Reference< ::my_module::XSomething > >::get();
|
||||
seq[ 0 ] = ::cppu::UnoType<lang::XTypeProvider>::get();
|
||||
seq[ 1 ] = ::cppu::UnoType<lang::XServiceInfo>::get();
|
||||
seq[ 2 ] = ::cppu::UnoType<my_module::XSomething>::get();
|
||||
return seq;
|
||||
}
|
||||
|
||||
|
@ -109,9 +109,9 @@ Any SAL_CALL OResultSet::queryInterface( const Type & rType ) throw(RuntimeExcep
|
||||
Sequence< Type > SAL_CALL OResultSet::getTypes( ) throw( RuntimeException)
|
||||
{
|
||||
OTypeCollection aTypes(
|
||||
::cppu::UnoType< Reference< ::com::sun::star::beans::XMultiPropertySet > >::get(),
|
||||
::cppu::UnoType< Reference< ::com::sun::star::beans::XFastPropertySet > >::get(),
|
||||
::cppu::UnoType< Reference< ::com::sun::star::beans::XPropertySet > >::get());
|
||||
::cppu::UnoType<css::beans::XMultiPropertySet>::get(),
|
||||
::cppu::UnoType<css::beans::XFastPropertySet>::get(),
|
||||
::cppu::UnoType<css::beans::XPropertySet>::get());
|
||||
|
||||
return concatSequences(aTypes.getTypes(),OResultSet_BASE::getTypes());
|
||||
}
|
||||
|
@ -110,9 +110,9 @@ Any SAL_CALL OStatement_Base::queryInterface( const Type & rType ) throw(Runtime
|
||||
Sequence< Type > SAL_CALL OStatement_Base::getTypes( ) throw(RuntimeException)
|
||||
{
|
||||
::cppu::OTypeCollection aTypes(
|
||||
::cppu::UnoType< Reference< XMultiPropertySet > >::get(),
|
||||
::cppu::UnoType< Reference< XFastPropertySet > >::get(),
|
||||
::cppu::UnoType< Reference< XPropertySet > >::get());
|
||||
::cppu::UnoType<XMultiPropertySet>::get(),
|
||||
::cppu::UnoType<XFastPropertySet>::get(),
|
||||
::cppu::UnoType<XPropertySet>::get());
|
||||
|
||||
return concatSequences(aTypes.getTypes(),OStatement_BASE::getTypes());
|
||||
}
|
||||
|
@ -851,17 +851,17 @@ uno::Any SwAccessibleTable::queryInterface( const uno::Type& rType )
|
||||
throw (uno::RuntimeException, std::exception)
|
||||
{
|
||||
uno::Any aRet;
|
||||
if ( rType == cppu::UnoType< uno::Reference< XAccessibleTable > >::get() )
|
||||
if ( rType == cppu::UnoType<XAccessibleTable>::get() )
|
||||
{
|
||||
uno::Reference<XAccessibleTable> xThis( this );
|
||||
aRet <<= xThis;
|
||||
}
|
||||
else if ( rType == cppu::UnoType< uno::Reference< XAccessibleSelection > >::get() )
|
||||
else if ( rType == cppu::UnoType<XAccessibleSelection>::get() )
|
||||
{
|
||||
uno::Reference<XAccessibleSelection> xSelection( this );
|
||||
aRet <<= xSelection;
|
||||
}
|
||||
else if ( rType == cppu::UnoType< uno::Reference<XAccessibleTableSelection> >::get() )
|
||||
else if ( rType == cppu::UnoType<XAccessibleTableSelection>::get() )
|
||||
{
|
||||
uno::Reference<XAccessibleTableSelection> xTableExtent( this );
|
||||
aRet <<= xTableExtent;
|
||||
@ -884,8 +884,8 @@ uno::Sequence< uno::Type > SAL_CALL SwAccessibleTable::getTypes()
|
||||
aTypes.realloc( nIndex + 2 );
|
||||
|
||||
uno::Type* pTypes = aTypes.getArray();
|
||||
pTypes[nIndex++] = cppu::UnoType< uno::Reference< XAccessibleSelection > >::get();
|
||||
pTypes[nIndex++] = cppu::UnoType< uno::Reference< XAccessibleTable > >::get();
|
||||
pTypes[nIndex++] = cppu::UnoType<XAccessibleSelection>::get();
|
||||
pTypes[nIndex++] = cppu::UnoType<XAccessibleTable>::get();
|
||||
|
||||
return aTypes;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user