summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTino Rachui <tra@openoffice.org>2001-06-28 09:34:00 +0000
committerTino Rachui <tra@openoffice.org>2001-06-28 09:34:00 +0000
commite8278ac55924cfb644261de014193165906bdbf6 (patch)
tree01a48281ee2612c56fc47600a25a0ca16b380f58
parent527671423bcb13b74f675b01bce1d93c35b18686 (diff)
#87759#not so strictly check in methods that expect sal_Int32 now also accepting sal_Int16 and sal_Int8
-rw-r--r--sysui/source/win32/misc/WinImplHelper.cxx12
1 files changed, 8 insertions, 4 deletions
diff --git a/sysui/source/win32/misc/WinImplHelper.cxx b/sysui/source/win32/misc/WinImplHelper.cxx
index f52e2164157d..2fcd3dd923ea 100644
--- a/sysui/source/win32/misc/WinImplHelper.cxx
+++ b/sysui/source/win32/misc/WinImplHelper.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: WinImplHelper.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: tra $ $Date: 2001-06-15 15:26:07 $
+ * last change: $Author: tra $ $Date: 2001-06-28 10:34:00 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -223,7 +223,9 @@ void SAL_CALL ListboxDeleteItem( HWND hwnd, const Any& aPosition, const Referenc
OSL_ASSERT( IsWindow( hwnd ) );
if ( !aPosition.hasValue( ) ||
- aPosition.getValueType( ) != getCppuType((sal_Int32*)0) )
+ ( (aPosition.getValueType( ) != getCppuType((sal_Int32*)0)) &&
+ (aPosition.getValueType( ) != getCppuType((sal_Int16*)0)) &&
+ (aPosition.getValueType( ) != getCppuType((sal_Int8*)0)) ) )
throw IllegalArgumentException(
OUString::createFromAscii( "invalid value type or any has no value" ),
rXInterface,
@@ -273,7 +275,9 @@ void SAL_CALL ListboxSetSelectedItem( HWND hwnd, const Any& aPosition, const Ref
OSL_ASSERT( IsWindow( hwnd ) );
if ( !aPosition.hasValue( ) ||
- aPosition.getValueType( ) != getCppuType((sal_Int32*)0) )
+ ( (aPosition.getValueType( ) != getCppuType((sal_Int32*)0)) &&
+ (aPosition.getValueType( ) != getCppuType((sal_Int16*)0)) &&
+ (aPosition.getValueType( ) != getCppuType((sal_Int8*)0)) ) )
throw IllegalArgumentException(
OUString::createFromAscii( "invalid value type or any has no value" ),
rXInterface,