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>
This commit is contained in:
parent
dff296c826
commit
6359f42064
@ -370,9 +370,10 @@ void QQnxWindow::setBufferSize(const QSize &size)
|
|||||||
|
|
||||||
errno = 0;
|
errno = 0;
|
||||||
result = screen_create_window_buffers(m_window, MAX_BUFFER_COUNT);
|
result = screen_create_window_buffers(m_window, MAX_BUFFER_COUNT);
|
||||||
if (result != 0)
|
if (result != 0) {
|
||||||
qWarning() << "QQnxWindow: Buffer size was" << size;
|
qWarning() << "QQnxWindow: Buffer size was" << size;
|
||||||
qFatal("QQnxWindow: failed to create window buffers, errno=%d", errno);
|
qFatal("QQnxWindow: failed to create window buffers, errno=%d", errno);
|
||||||
|
}
|
||||||
|
|
||||||
// If the child window has been configured for transparency, lazily create
|
// If the child window has been configured for transparency, lazily create
|
||||||
// a full-screen buffer to back the root window.
|
// a full-screen buffer to back the root window.
|
||||||
|
Loading…
Reference in New Issue
Block a user