summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms
diff options
context:
space:
mode:
authorMatt Hoosier <matt.hoosier@garmin.com>2013-05-23 15:49:37 -0500
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-05-24 11:53:09 +0200
commit6359f42064cdd9733ac54c3931156fd37448838e (patch)
tree95d033432c684962467cfaf0a01a5d331fcb3bcd /src/plugins/platforms
parentdff296c8263b5ca31c0f9713d5171798cc7013ba (diff)
QNX: fix buffer creation
During some coding style cleanup in 02311c07 ("QNX: normalize braces") some braces which were actually necessary got removed. The result was an spurious report of a fatal error when no underlying error condition had occurred. This change restores the braces to preserve the prior behavior. Change-Id: Ic32fbd5961ce59f6c01476fd2cef6fec0bdae93e Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
Diffstat (limited to 'src/plugins/platforms')
-rw-r--r--src/plugins/platforms/qnx/qqnxwindow.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/platforms/qnx/qqnxwindow.cpp b/src/plugins/platforms/qnx/qqnxwindow.cpp
index 7a1ffb98b8..9523685f70 100644
--- a/src/plugins/platforms/qnx/qqnxwindow.cpp
+++ b/src/plugins/platforms/qnx/qqnxwindow.cpp
@@ -370,9 +370,10 @@ void QQnxWindow::setBufferSize(const QSize &size)
errno = 0;
result = screen_create_window_buffers(m_window, MAX_BUFFER_COUNT);
- if (result != 0)
+ if (result != 0) {
qWarning() << "QQnxWindow: Buffer size was" << size;
qFatal("QQnxWindow: failed to create window buffers, errno=%d", errno);
+ }
// If the child window has been configured for transparency, lazily create
// a full-screen buffer to back the root window.