summaryrefslogtreecommitdiff
path: root/sfx2/source/statbar
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2014-05-05 23:24:25 +0200
committerJulien Nabet <serval2412@yahoo.fr>2014-05-05 23:24:49 +0200
commitebd4986c3495239f09510f2c0c79b6e30acda83e (patch)
treefce4db3c0eac639def371866654a93cdc2d0d7a2 /sfx2/source/statbar
parentfb0ca7eff0e16fa8dd1a4c8d75fef23830903a3f (diff)
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part2
Change-Id: Ibca921eff3647507ffb7e9011a84aeefbec58d7a
Diffstat (limited to 'sfx2/source/statbar')
-rw-r--r--sfx2/source/statbar/stbitem.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sfx2/source/statbar/stbitem.cxx b/sfx2/source/statbar/stbitem.cxx
index 9805c80fe45b..549b46f37d38 100644
--- a/sfx2/source/statbar/stbitem.cxx
+++ b/sfx2/source/statbar/stbitem.cxx
@@ -268,25 +268,25 @@ throw ( ::com::sun::star::uno::RuntimeException, std::exception )
rEvent.State >>= bTemp ;
pItem = new SfxBoolItem( nSlotID, bTemp );
}
- else if ( pType == ::getCppuType((const sal_uInt16*)0) )
+ else if ( pType == ::cppu::UnoType< ::cppu::UnoUnsignedShortType >::get() )
{
sal_uInt16 nTemp = 0;
rEvent.State >>= nTemp ;
pItem = new SfxUInt16Item( nSlotID, nTemp );
}
- else if ( pType == ::getCppuType((const sal_uInt32*)0) )
+ else if ( pType == cppu::UnoType<sal_uInt32>::get() )
{
sal_uInt32 nTemp = 0;
rEvent.State >>= nTemp ;
pItem = new SfxUInt32Item( nSlotID, nTemp );
}
- else if ( pType == ::getCppuType((const OUString*)0) )
+ else if ( pType == cppu::UnoType<OUString>::get() )
{
OUString sTemp ;
rEvent.State >>= sTemp ;
pItem = new SfxStringItem( nSlotID, sTemp );
}
- else if ( pType == ::getCppuType((const ::com::sun::star::frame::status::ItemStatus*)0) )
+ else if ( pType == cppu::UnoType<::com::sun::star::frame::status::ItemStatus>::get() )
{
frame::status::ItemStatus aItemStatus;
rEvent.State >>= aItemStatus;