summaryrefslogtreecommitdiffstats
path: root/src/network/socket
diff options
context:
space:
mode:
authorSergio Ahumada <sergio.ahumada@nokia.com>2012-09-04 19:39:07 +0200
committerQt by Nokia <qt-info@nokia.com>2012-09-05 03:03:05 +0200
commit56d5c909af6473be64a1ae487b45bd444a9a8553 (patch)
treed3032f82ce180b58791d7fcefba5e90f1d00a943 /src/network/socket
parent10ed50002c2ad6f4caaa7b922af5a9f1d3d91f52 (diff)
Use true and false in preference to TRUE and FALSE
The TRUE and FALSE macros are obsolete and should be replaced with true and false (all lower case) respectively. Change-Id: Iee352e8173500683e6319be0abbf5bacf29016e0 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/network/socket')
-rw-r--r--src/network/socket/qlocalserver_win.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/network/socket/qlocalserver_win.cpp b/src/network/socket/qlocalserver_win.cpp
index 3304c6c6a0..ba879f4eb0 100644
--- a/src/network/socket/qlocalserver_win.cpp
+++ b/src/network/socket/qlocalserver_win.cpp
@@ -69,7 +69,7 @@ bool QLocalServerPrivate::addListener()
SECURITY_ATTRIBUTES sa;
sa.nLength = sizeof(SECURITY_ATTRIBUTES);
- sa.bInheritHandle = FALSE; //non inheritable handle, same as default
+ sa.bInheritHandle = false; //non inheritable handle, same as default
sa.lpSecurityDescriptor = 0; //default security descriptor
QScopedPointer<SECURITY_DESCRIPTOR> pSD;
@@ -166,9 +166,9 @@ bool QLocalServerPrivate::addListener()
return false;
}
}
- SetSecurityDescriptorOwner(pSD.data(), pTokenUser->User.Sid, FALSE);
- SetSecurityDescriptorGroup(pSD.data(), pTokenGroup->PrimaryGroup, FALSE);
- if (!SetSecurityDescriptorDacl(pSD.data(), TRUE, acl, FALSE)) {
+ SetSecurityDescriptorOwner(pSD.data(), pTokenUser->User.Sid, false);
+ SetSecurityDescriptorGroup(pSD.data(), pTokenGroup->PrimaryGroup, false);
+ if (!SetSecurityDescriptorDacl(pSD.data(), false, acl, false)) {
setError(QLatin1String("QLocalServerPrivate::addListener"));
FreeSid(worldSID);
return false;
@@ -252,7 +252,7 @@ bool QLocalServerPrivate::listen(const QString &name)
// Use only one event for all listeners of one socket.
// The idea is that listener events are rare, so polling all listeners once in a while is
// cheap compared to waiting for N additional events in each iteration of the main loop.
- eventHandle = CreateEvent(NULL, TRUE, FALSE, NULL);
+ eventHandle = CreateEvent(NULL, true, false, NULL);
connectionEventNotifier = new QWinEventNotifier(eventHandle , q);
q->connect(connectionEventNotifier, SIGNAL(activated(HANDLE)), q, SLOT(_q_onNewConnection()));
@@ -282,7 +282,7 @@ void QLocalServerPrivate::_q_onNewConnection()
for (int i = 0; i < listeners.size(); ) {
HANDLE handle = listeners[i].handle;
if (listeners[i].connected
- || GetOverlappedResult(handle, &listeners[i].overlapped, &dummy, FALSE))
+ || GetOverlappedResult(handle, &listeners[i].overlapped, &dummy, false))
{
listeners.removeAt(i);