summaryrefslogtreecommitdiffstats
path: root/src/widgets/util/qcolormap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/util/qcolormap.cpp')
-rw-r--r--src/widgets/util/qcolormap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/util/qcolormap.cpp b/src/widgets/util/qcolormap.cpp
index fc4d511384..4bcf1501d2 100644
--- a/src/widgets/util/qcolormap.cpp
+++ b/src/widgets/util/qcolormap.cpp
@@ -58,7 +58,7 @@ static QColormapPrivate *screenMap = 0;
void QColormap::initialize()
{
screenMap = new QColormapPrivate;
- if (!QGuiApplication::primaryScreen()) {
+ if (Q_UNLIKELY(!QGuiApplication::primaryScreen())) {
qWarning("no screens available, assuming 24-bit color");
screenMap->depth = 24;
screenMap->mode = QColormap::Direct;