summaryrefslogtreecommitdiffstats
path: root/client/windows
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2012-01-10 15:26:55 +0000
committerAlon Levy <alevy@redhat.com>2012-01-13 18:11:59 +0200
commit68c2897e5bc910151ab5f6c1c06299ae7e60c678 (patch)
tree310c8fe12f509c67d350a74b0ecfefc363bb6843 /client/windows
parent51f1ad54ad51cdf202566f26e7d29082a3c577ed (diff)
downloadspice-68c2897e5bc910151ab5f6c1c06299ae7e60c678.tar.gz
spice-68c2897e5bc910151ab5f6c1c06299ae7e60c678.tar.xz
spice-68c2897e5bc910151ab5f6c1c06299ae7e60c678.zip
Remove trailing whitespace from end of lines
Diffstat (limited to 'client/windows')
-rw-r--r--client/windows/platform.cpp10
-rw-r--r--client/windows/stdint.h10
2 files changed, 10 insertions, 10 deletions
diff --git a/client/windows/platform.cpp b/client/windows/platform.cpp
index a99d438d..2b719f21 100644
--- a/client/windows/platform.cpp
+++ b/client/windows/platform.cpp
@@ -139,7 +139,7 @@ static uint32_t get_clipboard_format(uint32_t type) {
for (size_t i = 0; i < clipboard_formats_count; i++) {
for (uint32_t* ptype = clipboard_formats[i].types; *ptype; ptype++) {
if (*ptype == type) {
- return clipboard_formats[i].format;
+ return clipboard_formats[i].format;
}
}
}
@@ -228,7 +228,7 @@ static LRESULT CALLBACK PlatformWinProc(HWND hWnd, UINT message, WPARAM wParam,
// handling WM_RENDERFORMAT. Therefore, we try our best by sending CLIPBOARD_REQUEST to the
// agent, while waiting alertably for a while (hoping for good) for receiving CLIPBOARD data
// or CLIPBOARD_RELEASE from the agent, which both will signal clipboard_event.
- uint32_t type = get_clipboard_type(wParam);
+ uint32_t type = get_clipboard_type(wParam);
if (!type) {
LOG_INFO("Unsupported clipboard format %u", wParam);
break;
@@ -985,11 +985,11 @@ void Platform::set_clipboard_listener(ClipboardListener* listener)
static HGLOBAL utf8_alloc(LPCSTR data, int size)
{
- HGLOBAL handle;
+ HGLOBAL handle;
LPVOID buf;
int len;
- // Received utf8 string is not null-terminated
+ // Received utf8 string is not null-terminated
if (!(len = MultiByteToWideChar(CP_UTF8, 0, data, size, NULL, 0))) {
return NULL;
}
@@ -1001,7 +1001,7 @@ static HGLOBAL utf8_alloc(LPCSTR data, int size)
if (!(buf = GlobalLock(handle))) {
GlobalFree(handle);
return NULL;
- }
+ }
// Translate data and set clipboard content
if (!(MultiByteToWideChar(CP_UTF8, 0, data, size, (LPWSTR)buf, len))) {
GlobalUnlock(handle);
diff --git a/client/windows/stdint.h b/client/windows/stdint.h
index 0e0ecd41..30131610 100644
--- a/client/windows/stdint.h
+++ b/client/windows/stdint.h
@@ -104,11 +104,11 @@ typedef unsigned long long uint_least64_t;
-/* 7.18.1.3 Fastest minimum-width integer types
+/* 7.18.1.3 Fastest minimum-width integer types
* Not actually guaranteed to be fastest for all purposes
- * Here we use the exact-width types for 8 and 16-bit ints.
+ * Here we use the exact-width types for 8 and 16-bit ints.
*/
@@ -164,7 +164,7 @@ typedef unsigned long long uintmax_t;
/* 7.18.2.1 Limits of exact-width integer types */
-#define INT8_MIN (-128)
+#define INT8_MIN (-128)
#define INT16_MIN (-32768)
@@ -260,7 +260,7 @@ typedef unsigned long long uintmax_t;
/* 7.18.2.4 Limits of integer types capable of holding
- object pointers */
+ object pointers */
#define INTPTR_MIN INT32_MIN
@@ -298,7 +298,7 @@ typedef unsigned long long uintmax_t;
-#ifndef WCHAR_MIN /* also in wchar.h */
+#ifndef WCHAR_MIN /* also in wchar.h */
#define WCHAR_MIN 0