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/plugins/platforms/windows/qwindowswindow.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/plugins/platforms/windows/qwindowswindow.cpp')
-rw-r--r-- | src/plugins/platforms/windows/qwindowswindow.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/platforms/windows/qwindowswindow.cpp b/src/plugins/platforms/windows/qwindowswindow.cpp index b43032dc1a..7ffd0de58c 100644 --- a/src/plugins/platforms/windows/qwindowswindow.cpp +++ b/src/plugins/platforms/windows/qwindowswindow.cpp @@ -511,7 +511,7 @@ void WindowCreationData::initialize(HWND hwnd, bool frameChange, qreal opacityLe SetWindowPos(hwnd, HWND_BOTTOM, 0, 0, 0, 0, swpFlags); } if (flags & (Qt::CustomizeWindowHint|Qt::WindowTitleHint)) { - HMENU systemMenu = GetSystemMenu(hwnd, FALSE); + HMENU systemMenu = GetSystemMenu(hwnd, false); if (flags & Qt::WindowCloseButtonHint) EnableMenuItem(systemMenu, SC_CLOSE, MF_BYCOMMAND|MF_ENABLED); else @@ -557,7 +557,7 @@ QMargins QWindowsGeometryHint::frame(DWORD style, DWORD exStyle) #ifndef Q_OS_WINCE style &= ~(WS_OVERLAPPED); // Not permitted, see docs. #endif - if (!AdjustWindowRectEx(&rect, style, FALSE, exStyle)) + if (!AdjustWindowRectEx(&rect, style, false, exStyle)) qErrnoWarning("%s: AdjustWindowRectEx failed", __FUNCTION__); const QMargins result(qAbs(rect.left), qAbs(rect.top), qAbs(rect.right), qAbs(rect.bottom)); @@ -869,7 +869,7 @@ void QWindowsWindow::show_sys() const // maximizing the widget, and then remove the maximize button afterwards. if (flags & Qt::WindowTitleHint && !(flags & (Qt::WindowMinMaxButtonsHint | Qt::FramelessWindowHint))) { - fakedMaximize = TRUE; + fakedMaximize = true; setStyle(style() | WS_MAXIMIZEBOX); } } @@ -1107,7 +1107,7 @@ bool QWindowsWindow::handleWmPaint(HWND hwnd, UINT message, WPARAM, LPARAM) { // Ignore invalid update bounding rectangles - if (!GetUpdateRect(m_data.hwnd, 0, FALSE)) + if (!GetUpdateRect(m_data.hwnd, 0, false)) return false; if (message == WM_ERASEBKGND) // Backing store - ignored. return true; @@ -1537,7 +1537,7 @@ static inline DWORD cornerToWinOrientation(Qt::Corner corner) bool QWindowsWindow::startSystemResize(const QPoint &, Qt::Corner corner) { - if (!GetSystemMenu(m_data.hwnd, FALSE)) + if (!GetSystemMenu(m_data.hwnd, false)) return false; ReleaseCapture(); |