summaryrefslogtreecommitdiff
path: root/vdagent
diff options
context:
space:
mode:
authorVictor Toso <victortoso@redhat.com>2016-08-11 14:49:37 +0200
committerFrediano Ziglio <fziglio@redhat.com>2016-08-12 09:41:41 +0100
commit8ae139f363118cfc54489dd799a2f151add68a02 (patch)
treede74a0550cbd95b3af4e50e40c5d9e7ed9e803a5 /vdagent
parentd6919c6c075c3d322c7ffe3f601295f1195cc40d (diff)
vdagent: remove whitespaces
Acked-by: Frediano Ziglio <fziglio@redhat.com>
Diffstat (limited to 'vdagent')
-rw-r--r--vdagent/display_setting.cpp10
-rw-r--r--vdagent/display_setting.h2
-rw-r--r--vdagent/file_xfer.cpp4
-rw-r--r--vdagent/vdagent.cpp6
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 e098157..0e90ebe 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);