[Spice-devel] [vdagent-win v1 2/2] vdagent: remove whitespaces
Victor Toso
victortoso at redhat.com
Thu Aug 11 12:49:37 UTC 2016
---
vdagent/display_setting.cpp | 10 +++++-----
vdagent/display_setting.h | 2 +-
vdagent/file_xfer.cpp | 4 ++--
vdagent/vdagent.cpp | 6 +++---
4 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/vdagent/display_setting.cpp b/vdagent/display_setting.cpp
index c261b67..a2ada04 100644
--- a/vdagent/display_setting.cpp
+++ b/vdagent/display_setting.cpp
@@ -149,7 +149,7 @@ DWORD DisplaySetting::get_user_process_id()
vd_printf("ProcessIdToSessionId for explorer failed %lu", GetLastError());
break;
}
-
+
if (explorer_session_id == agent_session_id) {
explorer_pid = proc_entry.th32ProcessID;
break;
@@ -397,7 +397,7 @@ bool DisplaySetting::disable_animation()
win_animation.cbSize = sizeof(ANIMATIONINFO);
win_animation.iMinAnimate = 0;
- if (SystemParametersInfoA(SPI_SETANIMATION, sizeof(ANIMATIONINFO),
+ if (SystemParametersInfoA(SPI_SETANIMATION, sizeof(ANIMATIONINFO),
&win_animation, 0)) {
vd_printf("disable window animation: success");
} else {
@@ -455,7 +455,7 @@ bool DisplaySetting::reload_win_animation(HKEY desktop_reg_key)
active_win_animation.cbSize = sizeof(ANIMATIONINFO);
active_win_animation.iMinAnimate = 1;
- if (SystemParametersInfoA(SPI_SETANIMATION, sizeof(ANIMATIONINFO),
+ if (SystemParametersInfoA(SPI_SETANIMATION, sizeof(ANIMATIONINFO),
&active_win_animation, 0)) {
vd_printf("reload window animation: success");
return false;
@@ -488,12 +488,12 @@ bool DisplaySetting::reload_ui_effects(HKEY desktop_reg_key)
vd_printf("RegQueryValueEx(UserPreferencesMask) : fail %ld", status);
return false;
}
-
+
if (value_type != REG_BINARY) {
vd_printf("bad UserPreferencesMask value type %lu (expected REG_BINARY)", value_type);
return false;
}
-
+
vd_printf("UserPreferencesMask = %lx %lx", ui_mask[0], ui_mask[1]);
ret &= set_bool_system_parameter_info(SPI_SETUIEFFECTS, ui_mask[0] & 0x80000000);
diff --git a/vdagent/display_setting.h b/vdagent/display_setting.h
index 8c8cdb1..ccb2e84 100644
--- a/vdagent/display_setting.h
+++ b/vdagent/display_setting.h
@@ -22,7 +22,7 @@
class DisplaySettingOptions {
public:
- DisplaySettingOptions()
+ DisplaySettingOptions()
: _disable_wallpaper (false)
, _disable_font_smoothing (false)
, _disable_animation (false) {}
diff --git a/vdagent/file_xfer.cpp b/vdagent/file_xfer.cpp
index cbf7e5e..2f92a18 100644
--- a/vdagent/file_xfer.cpp
+++ b/vdagent/file_xfer.cpp
@@ -127,7 +127,7 @@ bool FileXfer::handle_data(VDAgentFileXferDataMessage* data,
if (task->pos > task->size) {
vd_printf("file xfer is longer than expected");
goto fin;
- }
+ }
if (!WriteFile(task->handle, data->data, (DWORD)data->size,
&written, NULL) || written != data->size) {
vd_printf("file write failed %lu", GetLastError());
@@ -157,7 +157,7 @@ void FileXfer::handle_status(VDAgentFileXferStatusMessage* status)
FileXferTasks::iterator iter;
FileXferTask* task;
- vd_printf("id %u result %u", status->id, status->result);
+ vd_printf("id %u result %u", status->id, status->result);
if (status->result != VD_AGENT_FILE_XFER_STATUS_CANCELLED) {
vd_printf("only cancel is permitted");
return;
diff --git a/vdagent/vdagent.cpp b/vdagent/vdagent.cpp
index 959881d..c67f30c 100644
--- a/vdagent/vdagent.cpp
+++ b/vdagent/vdagent.cpp
@@ -129,7 +129,7 @@ private:
static VDAgent* _singleton;
HWND _hwnd;
HWND _hwnd_next_viewer;
- HMODULE _user_lib;
+ HMODULE _user_lib;
PCLIPBOARD_OP _add_clipboard_listener;
PCLIPBOARD_OP _remove_clipboard_listener;
int _system_version;
@@ -983,7 +983,7 @@ void VDAgent::on_clipboard_grab()
while ((format = EnumClipboardFormats(format))) {
vd_printf("Unsupported clipboard format %u", format);
}
- }
+ }
}
// In delayed rendering, Windows requires us to SetClipboardData before we return from
@@ -1268,7 +1268,7 @@ void VDAgent::dispatch_message(VDAgentMessage* msg, uint32_t port)
handle_clipboard((VDAgentClipboard*)msg->data, msg->size - sizeof(VDAgentClipboard));
break;
case VD_AGENT_CLIPBOARD_GRAB:
- handle_clipboard_grab((VDAgentClipboardGrab*)msg->data, msg->size);
+ handle_clipboard_grab((VDAgentClipboardGrab*)msg->data, msg->size);
break;
case VD_AGENT_CLIPBOARD_REQUEST:
res = handle_clipboard_request((VDAgentClipboardRequest*)msg->data);
--
2.7.4
More information about the Spice-devel
mailing list