From e8278ac55924cfb644261de014193165906bdbf6 Mon Sep 17 00:00:00 2001 From: Tino Rachui Date: Thu, 28 Jun 2001 09:34:00 +0000 Subject: #87759#not so strictly check in methods that expect sal_Int32 now also accepting sal_Int16 and sal_Int8 --- sysui/source/win32/misc/WinImplHelper.cxx | 12 ++++++++---- 1 file 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, -- cgit v1.2.3