summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/qnx/qqnxscreen.cpp
diff options
context:
space:
mode:
authorRafael Roquetto <rafael.roquetto.qnx@kdab.com>2013-05-18 09:19:38 -0300
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-05-23 12:49:39 +0200
commit02311c07cf98d5a39a05a81aac5d5fc318f2d822 (patch)
tree87f8d5ec07b9f3344079fed9d3f8289b181f8be1 /src/plugins/platforms/qnx/qqnxscreen.cpp
parentc3488be438a80256f0f699efd7ee796939b83c17 (diff)
QNX: normalize braces
Change-Id: I05f140a0626e543535cc74c6f737be9be1e27a5d Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Diffstat (limited to 'src/plugins/platforms/qnx/qqnxscreen.cpp')
-rw-r--r--src/plugins/platforms/qnx/qqnxscreen.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/plugins/platforms/qnx/qqnxscreen.cpp b/src/plugins/platforms/qnx/qqnxscreen.cpp
index 2b81559ab6..f8203b2329 100644
--- a/src/plugins/platforms/qnx/qqnxscreen.cpp
+++ b/src/plugins/platforms/qnx/qqnxscreen.cpp
@@ -118,18 +118,17 @@ QQnxScreen::QQnxScreen(screen_context_t screenContext, screen_display_t display,
// Cache initial orientation of this display
errno = 0;
int result = screen_get_display_property_iv(m_display, SCREEN_PROPERTY_ROTATION, &m_initialRotation);
- if (result != 0) {
+ if (result != 0)
qFatal("QQnxScreen: failed to query display rotation, errno=%d", errno);
- }
+
m_currentRotation = m_initialRotation;
// Cache size of this display in pixels
errno = 0;
int val[2];
result = screen_get_display_property_iv(m_display, SCREEN_PROPERTY_SIZE, val);
- if (result != 0) {
+ if (result != 0)
qFatal("QQnxScreen: failed to query display size, errno=%d", errno);
- }
m_currentGeometry = m_initialGeometry = QRect(0, 0, val[0], val[1]);
@@ -165,9 +164,8 @@ static int defaultDepth()
// check if display depth was specified in environment variable;
// use default value if no valid value found
defaultDepth = qgetenv("QQNX_DISPLAY_DEPTH").toInt();
- if (defaultDepth != 16 && defaultDepth != 32) {
+ if (defaultDepth != 16 && defaultDepth != 32)
defaultDepth = 32;
- }
}
return defaultDepth;
}