From f69e74d1a0fcd5ec6c38dc8a33e9562486aef1b6 Mon Sep 17 00:00:00 2001
From: Julien Nabet <serval2412@yahoo.fr>
Date: Tue, 6 May 2014 21:31:29 +0200
Subject: Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part2 + fix
 some errors

Change-Id: I9c889d718a9c91eb4c2bde2389a21dd754cbef36
---
 sfx2/source/control/bindings.cxx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'sfx2')

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 ;
-- 
cgit