Fix long/sal_IntPtr mismatch on x86_64 platform on windows

25e2914382 changed Link class to
use sal_IntPtr instead of long, but missed to adjust number of
occurrences.

Change-Id: I966185083a41b41c7385947a03369a8ce65c61b8
Reviewed-on: https://gerrit.libreoffice.org/13852
Reviewed-by: David Ostrovsky <david@ostrovsky.org>
Tested-by: David Ostrovsky <david@ostrovsky.org>
This commit is contained in:
David Ostrovsky
2015-01-10 21:37:08 +00:00
parent 28deec717c
commit 2ce0030227
11 changed files with 17 additions and 17 deletions
+1 -1
View File
@@ -90,7 +90,7 @@ class AbstractSpellDialog : public VclAbstractDialog
virtual SfxBindings& GetBindings() = 0;
};
typedef long (*PLinkStub)( void*, void* );
typedef sal_IntPtr (*PLinkStub)( void*, void* );
class AbstractSearchProgress :public VclAbstractRefreshableDialog
{
+1 -1
View File
@@ -93,7 +93,7 @@ public:
protected:
/// Handler for click, in case we want the button to handle uno commands (.uno:Something).
static long dispatchCommandHandler(void *, void *pCaller);
static sal_IntPtr dispatchCommandHandler(void *, void *pCaller);
};
+1 -1
View File
@@ -187,7 +187,7 @@ static bool lcl_GetSortParam( const ScViewData* pData, ScSortParam& rSortParam )
//after end execute from !IsModalInputMode, it is safer to delay deleting
namespace
{
long DelayDeleteAbstractDialog( void *pAbstractDialog, void * /*pArg*/ )
sal_IntPtr DelayDeleteAbstractDialog( void *pAbstractDialog, void * /*pArg*/ )
{
delete reinterpret_cast<SfxAbstractTabDialog*>( pAbstractDialog );
return 0;
+2 -2
View File
@@ -404,7 +404,7 @@ bool SfxShell::CanExecuteSlot_Impl( const SfxSlot &rSlot )
return aSet.GetItemState(nId) != SfxItemState::DISABLED;
}
long ShellCall_Impl( void* pObj, void* pArg )
sal_IntPtr ShellCall_Impl( void* pObj, void* pArg )
{
((SfxShell* )pObj)->ExecuteSlot( *(SfxRequest*)pArg, (SfxInterface*)0L );
return 0;
@@ -665,7 +665,7 @@ bool SfxShell::HasUIFeature( sal_uInt32 )
return false;
}
long DispatcherUpdate_Impl( void*, void* pArg )
sal_IntPtr DispatcherUpdate_Impl( void*, void* pArg )
{
((SfxDispatcher*) pArg)->Update_Impl( true );
((SfxDispatcher*) pArg)->GetBindings()->InvalidateAll(false);
+1 -1
View File
@@ -669,7 +669,7 @@ struct ImplDelayedDispatch
~ImplDelayedDispatch() {}
};
static long implDispatchDelayed( void*, void* pArg )
static sal_IntPtr implDispatchDelayed( void*, void* pArg )
{
struct ImplDelayedDispatch* pDispatch = reinterpret_cast<ImplDelayedDispatch*>(pArg);
try
+2 -2
View File
@@ -299,7 +299,7 @@ PopupMenu* SfxMenuControl::GetPopup () const
return 0;
}
long Select_Impl( void* pHdl, void* pVoid );
sal_IntPtr Select_Impl( void* pHdl, void* pVoid );
SFX_IMPL_MENU_CONTROL( SfxAppMenuControl_Impl, SfxStringItem );
@@ -416,7 +416,7 @@ SfxUnoMenuControl::~SfxUnoMenuControl()
pUnoCtrl->release();
}
long Select_Impl( void* /*pHdl*/, void* pVoid )
sal_IntPtr Select_Impl( void* /*pHdl*/, void* pVoid )
{
Menu* pMenu = (Menu*)pVoid;
OUString aURL( pMenu->GetItemCommand( pMenu->GetCurItemId() ) );
+2 -2
View File
@@ -104,13 +104,13 @@ void ScrollableWrapper<T>::lcl_Scroll( long nX, long nY )
//IMPL_LINK( ScrollableWrapper, ScrollBarHdl, ScrollBar*, pSB )
template< class T>
long ScrollableWrapper<T>::LinkStubScrollBarHdl( void* pThis, void* pCaller)
sal_IntPtr ScrollableWrapper<T>::LinkStubScrollBarHdl( void* pThis, void* pCaller)
{
return ((ScrollableWrapper<T>*)pThis )->ScrollBarHdl( (ScrollBar*)pCaller );
}
template< class T>
long ScrollableWrapper<T>::ScrollBarHdl( ScrollBar* pSB )
sal_IntPtr ScrollableWrapper<T>::ScrollBarHdl( ScrollBar* pSB )
{
sal_uInt16 nPos = (sal_uInt16) pSB->GetThumbPos();
if( pSB == &maVScrollBar )
+2 -2
View File
@@ -146,7 +146,7 @@ UUIInteractionHelper::~UUIInteractionHelper()
{
}
long
sal_IntPtr
UUIInteractionHelper::handlerequest(
void* pHandleData, void* pInteractionHelper)
{
@@ -191,7 +191,7 @@ UUIInteractionHelper::handleRequest(
}
}
long
sal_IntPtr
UUIInteractionHelper::getstringfromrequest(
void* pHandleData,void* pInteractionHelper)
{
+2 -2
View File
@@ -131,7 +131,7 @@ private:
bool & bHasErrorString,
OUString & rErrorString);
static long
static sal_IntPtr
handlerequest(void* pHandleData, void* pInteractionHandler);
com::sun::star::beans::Optional< OUString >
@@ -139,7 +139,7 @@ private:
com::sun::star::uno::Reference<
com::sun::star::task::XInteractionRequest > const & rRequest);
static long
static sal_IntPtr
getstringfromrequest(void* pHandleData, void* pInteractionHandler);
vcl::Window *
+1 -1
View File
@@ -599,7 +599,7 @@ bool Button::set_property(const OString &rKey, const OString &rValue)
return true;
}
long Button::dispatchCommandHandler(void *, void *pCaller)
sal_IntPtr Button::dispatchCommandHandler(void *, void *pCaller)
{
const Button *pButton = reinterpret_cast<Button*>(pCaller);
if (pButton == NULL)
+2 -2
View File
@@ -253,7 +253,7 @@ struct ContextMenuEvent
Point aChildPos;
};
static long ContextMenuEventLink( void* pCEvent, void* )
static sal_IntPtr ContextMenuEventLink( void* pCEvent, void* )
{
ContextMenuEvent* pEv = (ContextMenuEvent*)pCEvent;
@@ -1833,7 +1833,7 @@ struct DelayedCloseEvent
ImplDelData aDelData;
};
static long DelayedCloseEventLink( void* pCEvent, void* )
static sal_IntPtr DelayedCloseEventLink( void* pCEvent, void* )
{
DelayedCloseEvent* pEv = (DelayedCloseEvent*)pCEvent;