Commit b7c340de authored by Alexandre Julliard's avatar Alexandre Julliard

user32: Get rid of the unused parameter in the EmptyClipboard driver entry point.

parent f5066488
...@@ -299,8 +299,7 @@ BOOL WINAPI EmptyClipboard(void) ...@@ -299,8 +299,7 @@ BOOL WINAPI EmptyClipboard(void)
* to clear its cache. */ * to clear its cache. */
USER_Driver->pAcquireClipboard(cbinfo.hWndOpen); USER_Driver->pAcquireClipboard(cbinfo.hWndOpen);
/* Empty the local cache */ USER_Driver->pEmptyClipboard();
USER_Driver->pEmptyClipboard(FALSE);
bCBHasChanged = TRUE; bCBHasChanged = TRUE;
......
...@@ -344,7 +344,7 @@ static BOOL CDECL nulldrv_CountClipboardFormats(void) ...@@ -344,7 +344,7 @@ static BOOL CDECL nulldrv_CountClipboardFormats(void)
return 0; return 0;
} }
static void CDECL nulldrv_EmptyClipboard( BOOL keepunowned ) static void CDECL nulldrv_EmptyClipboard(void)
{ {
} }
...@@ -684,9 +684,9 @@ static BOOL CDECL loaderdrv_CountClipboardFormats(void) ...@@ -684,9 +684,9 @@ static BOOL CDECL loaderdrv_CountClipboardFormats(void)
return load_driver()->pCountClipboardFormats(); return load_driver()->pCountClipboardFormats();
} }
static void CDECL loaderdrv_EmptyClipboard( BOOL keepunowned ) static void CDECL loaderdrv_EmptyClipboard(void)
{ {
load_driver()->pEmptyClipboard( keepunowned ); load_driver()->pEmptyClipboard();
} }
static void CDECL loaderdrv_EndClipboardUpdate(void) static void CDECL loaderdrv_EndClipboardUpdate(void)
......
...@@ -82,7 +82,7 @@ typedef struct tagUSER_DRIVER { ...@@ -82,7 +82,7 @@ typedef struct tagUSER_DRIVER {
/* clipboard functions */ /* clipboard functions */
INT (CDECL *pAcquireClipboard)(HWND); /* Acquire selection */ INT (CDECL *pAcquireClipboard)(HWND); /* Acquire selection */
BOOL (CDECL *pCountClipboardFormats)(void); /* Count available clipboard formats */ BOOL (CDECL *pCountClipboardFormats)(void); /* Count available clipboard formats */
void (CDECL *pEmptyClipboard)(BOOL); /* Empty clipboard data */ void (CDECL *pEmptyClipboard)(void); /* Empty clipboard data */
void (CDECL *pEndClipboardUpdate)(void); /* End clipboard update */ void (CDECL *pEndClipboardUpdate)(void); /* End clipboard update */
UINT (CDECL *pEnumClipboardFormats)(UINT); /* Enumerate clipboard formats */ UINT (CDECL *pEnumClipboardFormats)(UINT); /* Enumerate clipboard formats */
HANDLE (CDECL *pGetClipboardData)(UINT); /* Get specified selection data */ HANDLE (CDECL *pGetClipboardData)(UINT); /* Get specified selection data */
......
...@@ -1952,9 +1952,9 @@ INT CDECL macdrv_CountClipboardFormats(void) ...@@ -1952,9 +1952,9 @@ INT CDECL macdrv_CountClipboardFormats(void)
* *
* Empty cached clipboard data. * Empty cached clipboard data.
*/ */
void CDECL macdrv_EmptyClipboard(BOOL keepunowned) void CDECL macdrv_EmptyClipboard(void)
{ {
TRACE("keepunowned %d\n", keepunowned); TRACE("()\n");
macdrv_clear_pasteboard(); macdrv_clear_pasteboard();
} }
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
@ cdecl CreateWindow(long) macdrv_CreateWindow @ cdecl CreateWindow(long) macdrv_CreateWindow
@ cdecl DestroyCursorIcon(long) macdrv_DestroyCursorIcon @ cdecl DestroyCursorIcon(long) macdrv_DestroyCursorIcon
@ cdecl DestroyWindow(long) macdrv_DestroyWindow @ cdecl DestroyWindow(long) macdrv_DestroyWindow
@ cdecl EmptyClipboard(long) macdrv_EmptyClipboard @ cdecl EmptyClipboard() macdrv_EmptyClipboard
@ cdecl EndClipboardUpdate() macdrv_EndClipboardUpdate @ cdecl EndClipboardUpdate() macdrv_EndClipboardUpdate
@ cdecl EnumClipboardFormats(long) macdrv_EnumClipboardFormats @ cdecl EnumClipboardFormats(long) macdrv_EnumClipboardFormats
@ cdecl EnumDisplayMonitors(long ptr ptr long) macdrv_EnumDisplayMonitors @ cdecl EnumDisplayMonitors(long ptr ptr long) macdrv_EnumDisplayMonitors
......
...@@ -129,7 +129,6 @@ static int selectionAcquired = 0; /* Contains the current selection ...@@ -129,7 +129,6 @@ static int selectionAcquired = 0; /* Contains the current selection
static Window selectionWindow = None; /* The top level X window which owns the selection */ static Window selectionWindow = None; /* The top level X window which owns the selection */
static Atom selectionCacheSrc = XA_PRIMARY; /* The selection source from which the clipboard cache was filled */ static Atom selectionCacheSrc = XA_PRIMARY; /* The selection source from which the clipboard cache was filled */
void CDECL X11DRV_EmptyClipboard(BOOL keepunowned);
void CDECL X11DRV_EndClipboardUpdate(void); void CDECL X11DRV_EndClipboardUpdate(void);
static HANDLE X11DRV_CLIPBOARD_ImportClipboardData(Display *d, Window w, Atom prop); static HANDLE X11DRV_CLIPBOARD_ImportClipboardData(Display *d, Window w, Atom prop);
static HANDLE X11DRV_CLIPBOARD_ImportEnhMetaFile(Display *d, Window w, Atom prop); static HANDLE X11DRV_CLIPBOARD_ImportEnhMetaFile(Display *d, Window w, Atom prop);
...@@ -171,6 +170,7 @@ static BOOL X11DRV_CLIPBOARD_RenderSynthesizedDIB(Display *display); ...@@ -171,6 +170,7 @@ static BOOL X11DRV_CLIPBOARD_RenderSynthesizedDIB(Display *display);
static BOOL X11DRV_CLIPBOARD_RenderSynthesizedBitmap(Display *display); static BOOL X11DRV_CLIPBOARD_RenderSynthesizedBitmap(Display *display);
static BOOL X11DRV_CLIPBOARD_RenderSynthesizedEnhMetaFile(Display *display); static BOOL X11DRV_CLIPBOARD_RenderSynthesizedEnhMetaFile(Display *display);
static void X11DRV_HandleSelectionRequest( HWND hWnd, XSelectionRequestEvent *event, BOOL bIsMultiple ); static void X11DRV_HandleSelectionRequest( HWND hWnd, XSelectionRequestEvent *event, BOOL bIsMultiple );
static void empty_clipboard( BOOL keepunowned );
/* Clipboard formats */ /* Clipboard formats */
...@@ -621,7 +621,7 @@ static BOOL X11DRV_CLIPBOARD_UpdateCache(void) ...@@ -621,7 +621,7 @@ static BOOL X11DRV_CLIPBOARD_UpdateCache(void)
} }
else if (wSeqNo < seqno) else if (wSeqNo < seqno)
{ {
X11DRV_EmptyClipboard(TRUE); empty_clipboard( TRUE );
if (X11DRV_CLIPBOARD_QueryAvailableData(thread_init_display()) < 0) if (X11DRV_CLIPBOARD_QueryAvailableData(thread_init_display()) < 0)
{ {
...@@ -2862,7 +2862,7 @@ static void X11DRV_CLIPBOARD_ReleaseSelection(Display *display, Atom selType, Wi ...@@ -2862,7 +2862,7 @@ static void X11DRV_CLIPBOARD_ReleaseSelection(Display *display, Atom selType, Wi
selectionWindow = None; selectionWindow = None;
X11DRV_EmptyClipboard(FALSE); empty_clipboard( FALSE );
/* Reset the selection flags now that we are done */ /* Reset the selection flags now that we are done */
selectionAcquired = S_NOSELECTION; selectionAcquired = S_NOSELECTION;
...@@ -2982,12 +2982,7 @@ int CDECL X11DRV_AcquireClipboard(HWND hWndClipWindow) ...@@ -2982,12 +2982,7 @@ int CDECL X11DRV_AcquireClipboard(HWND hWndClipWindow)
} }
/************************************************************************** static void empty_clipboard(BOOL keepunowned)
* X11DRV_EmptyClipboard
*
* Empty cached clipboard data.
*/
void CDECL X11DRV_EmptyClipboard(BOOL keepunowned)
{ {
WINE_CLIPDATA *data, *next; WINE_CLIPDATA *data, *next;
...@@ -3003,7 +2998,15 @@ void CDECL X11DRV_EmptyClipboard(BOOL keepunowned) ...@@ -3003,7 +2998,15 @@ void CDECL X11DRV_EmptyClipboard(BOOL keepunowned)
TRACE(" %d entries remaining in cache.\n", ClipDataCount); TRACE(" %d entries remaining in cache.\n", ClipDataCount);
} }
/**************************************************************************
* X11DRV_EmptyClipboard
*
* Empty cached clipboard data.
*/
void CDECL X11DRV_EmptyClipboard(void)
{
empty_clipboard( FALSE );
}
/************************************************************************** /**************************************************************************
* X11DRV_SetClipboardData * X11DRV_SetClipboardData
...@@ -3154,7 +3157,7 @@ void X11DRV_ResetSelectionOwner(void) ...@@ -3154,7 +3157,7 @@ void X11DRV_ResetSelectionOwner(void)
WARN("Failed to find another thread to take selection ownership. Clipboard data will be lost.\n"); WARN("Failed to find another thread to take selection ownership. Clipboard data will be lost.\n");
X11DRV_CLIPBOARD_ReleaseOwnership(); X11DRV_CLIPBOARD_ReleaseOwnership();
X11DRV_EmptyClipboard(FALSE); empty_clipboard( FALSE );
} }
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
@ cdecl CreateDesktopWindow(long) X11DRV_CreateDesktopWindow @ cdecl CreateDesktopWindow(long) X11DRV_CreateDesktopWindow
@ cdecl CreateWindow(long) X11DRV_CreateWindow @ cdecl CreateWindow(long) X11DRV_CreateWindow
@ cdecl DestroyWindow(long) X11DRV_DestroyWindow @ cdecl DestroyWindow(long) X11DRV_DestroyWindow
@ cdecl EmptyClipboard(long) X11DRV_EmptyClipboard @ cdecl EmptyClipboard() X11DRV_EmptyClipboard
@ cdecl EndClipboardUpdate() X11DRV_EndClipboardUpdate @ cdecl EndClipboardUpdate() X11DRV_EndClipboardUpdate
@ cdecl EnumClipboardFormats(long) X11DRV_EnumClipboardFormats @ cdecl EnumClipboardFormats(long) X11DRV_EnumClipboardFormats
@ cdecl GetClipboardData(long) X11DRV_GetClipboardData @ cdecl GetClipboardData(long) X11DRV_GetClipboardData
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment