summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2014-05-06 21:31:29 +0200
committerJulien Nabet <serval2412@yahoo.fr>2014-05-06 21:33:28 +0200
commitf69e74d1a0fcd5ec6c38dc8a33e9562486aef1b6 (patch)
tree5b22522d60b2442652c946a8c0993320ed6c39b7 /sfx2
parent7aa32a759fb7b440f870739f7bb680f405f338ce (diff)
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part2 + fix some errors
Change-Id: I9c889d718a9c91eb4c2bde2389a21dd754cbef36
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/control/bindings.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/control/bindings.cxx b/sfx2/source/control/bindings.cxx
index efa0cc751557..f157ba54a849 100644
--- a/sfx2/source/control/bindings.cxx
+++ b/sfx2/source/control/bindings.cxx
@@ -1908,19 +1908,19 @@ SfxItemState SfxBindings::QueryState( sal_uInt16 nSlot, SfxPoolItem* &rpState )
aAny >>= bTemp ;
pItem = new SfxBoolItem( nSlot, bTemp );
}
- else if ( pType == ::getCppuType((const sal_uInt16*)0) )
+ else if ( pType == ::cppu::UnoType< ::cppu::UnoUnsignedShortType >::get() )
{
sal_uInt16 nTemp = 0;
aAny >>= nTemp ;
pItem = new SfxUInt16Item( nSlot, nTemp );
}
- else if ( pType == ::getCppuType((const sal_uInt32*)0) )
+ else if ( pType == cppu::UnoType<sal_uInt32>::get() )
{
sal_uInt32 nTemp = 0;
aAny >>= nTemp ;
pItem = new SfxUInt32Item( nSlot, nTemp );
}
- else if ( pType == ::getCppuType((const OUString*)0) )
+ else if ( pType == cppu::UnoType<OUString>::get() )
{
OUString sTemp ;
aAny >>= sTemp ;