summaryrefslogtreecommitdiff
path: root/vdagent
diff options
context:
space:
mode:
authorUri Lublin <uril@redhat.com>2014-03-24 19:02:43 +0200
committerUri Lublin <uril@redhat.com>2014-12-30 17:17:24 +0200
commit8a28f878b95f1edf28d02542587393382fbe5e2e (patch)
tree63277b4ec4eddb6f882e76af25c5f7ae18b5ca8c /vdagent
parenteb276f4b45f063273373d2379fae5d66c3a60ec5 (diff)
vdagent: as_user: reorder initialization to make mingw-gcc happy
Fixes compiler warning that starts with: In file included from vdagent/as_user.cpp:19:0: vdagent/as_user.h: In constructor 'AsUser::AsUser(DWORD)': vdagent/as_user.h:35:10: warning: 'AsUser::_started' will be initialized after [-Wreorder] bool _started;
Diffstat (limited to 'vdagent')
-rw-r--r--vdagent/as_user.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/vdagent/as_user.cpp b/vdagent/as_user.cpp
index d2d6c58..c8016da 100644
--- a/vdagent/as_user.cpp
+++ b/vdagent/as_user.cpp
@@ -21,9 +21,9 @@
#include <wtsapi32.h>
AsUser::AsUser(DWORD session_id):
- _started(false),
_session_id(session_id),
- _token(INVALID_HANDLE_VALUE)
+ _token(INVALID_HANDLE_VALUE),
+ _started(false)
{
}