diff options
author | Sergio Ahumada <sergio.ahumada@nokia.com> | 2012-09-04 19:39:07 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-09-05 03:03:05 +0200 |
commit | 56d5c909af6473be64a1ae487b45bd444a9a8553 (patch) | |
tree | d3032f82ce180b58791d7fcefba5e90f1d00a943 /src/corelib/io/qwindowspipewriter.cpp | |
parent | 10ed50002c2ad6f4caaa7b922af5a9f1d3d91f52 (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/corelib/io/qwindowspipewriter.cpp')
-rw-r--r-- | src/corelib/io/qwindowspipewriter.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/corelib/io/qwindowspipewriter.cpp b/src/corelib/io/qwindowspipewriter.cpp index aa3745237b..a7ed002b1e 100644 --- a/src/corelib/io/qwindowspipewriter.cpp +++ b/src/corelib/io/qwindowspipewriter.cpp @@ -54,7 +54,7 @@ QWindowsPipeWriter::QWindowsPipeWriter(HANDLE pipe, QObject * parent) { #if !defined(Q_OS_WINCE) || (_WIN32_WCE >= 0x600) DuplicateHandle(GetCurrentProcess(), pipe, GetCurrentProcess(), - &writePipe, 0, FALSE, DUPLICATE_SAME_ACCESS); + &writePipe, 0, false, DUPLICATE_SAME_ACCESS); #else Q_UNUSED(pipe); writePipe = GetCurrentProcess(); @@ -103,7 +103,7 @@ void QWindowsPipeWriter::run() { OVERLAPPED overl; memset(&overl, 0, sizeof overl); - overl.hEvent = CreateEvent(NULL, TRUE, FALSE, NULL); + overl.hEvent = CreateEvent(NULL, true, false, NULL); forever { lock.lock(); while(data.isEmpty() && (!quitNow)) { @@ -138,7 +138,7 @@ void QWindowsPipeWriter::run() } #ifndef Q_OS_WINCE if (GetLastError() == ERROR_IO_PENDING) { - if (!GetOverlappedResult(writePipe, &overl, &written, TRUE)) { + if (!GetOverlappedResult(writePipe, &overl, &written, true)) { CloseHandle(overl.hEvent); return; } |