tdf#114441 change use of sal_uLong to better integer types in toolkit

nPageID is referenced as sal_uInt16 in TabControl::SelectTabPage.

Change-Id: I11e518a0c9be5eecb9e8b2472f4df356da5a93e3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164330
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
This commit is contained in:
anish.deshpande 2024-03-04 16:17:06 +05:30 committed by Michael Weghorn
parent 9556504b21
commit 7d384d6310
2 changed files with 3 additions and 3 deletions

View file

@ -148,7 +148,7 @@ void VCLXTabPageContainer::ProcessWindowEvent( const VclWindowEvent& _rVclWindow
{
case VclEventId::TabpageActivate:
{
sal_uLong page = reinterpret_cast<sal_uLong>(_rVclWindowEvent.GetData());
sal_uInt16 page = static_cast<sal_uInt16>(reinterpret_cast<sal_uIntPtr>(_rVclWindowEvent.GetData()));
awt::tab::TabPageActivatedEvent aEvent(nullptr,page);
m_aTabPageListeners.tabPageActivated(aEvent);
break;

View file

@ -2602,14 +2602,14 @@ void VCLXMultiPage::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent )
{
case VclEventId::TabpageDeactivate:
{
sal_uLong nPageID = reinterpret_cast<sal_uLong>( rVclWindowEvent.GetData() );
sal_uInt16 nPageID = static_cast<sal_uInt16>(reinterpret_cast<sal_uIntPtr>( rVclWindowEvent.GetData() ));
maTabListeners.deactivated( nPageID );
break;
}
case VclEventId::TabpageActivate:
{
sal_uLong nPageID = reinterpret_cast<sal_uLong>( rVclWindowEvent.GetData() );
sal_uInt16 nPageID = static_cast<sal_uInt16>(reinterpret_cast<sal_uIntPtr>( rVclWindowEvent.GetData() ));
maTabListeners.activated( nPageID );
break;
}