summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarald Fernengel <harald.fernengel@nokia.com>2011-04-06 08:37:52 (GMT)
committerHarald Fernengel <harald.fernengel@nokia.com>2011-04-06 08:37:52 (GMT)
commit4de04d2b15e63287e7436a4ad60a383d959aee34 (patch)
treed1b434e1faee412539b16941a08f8a01d26ee2f8 /src
parentc08089639f540cb61cebc92bc6ad2a587550af47 (diff)
downloadQt-4de04d2b15e63287e7436a4ad60a383d959aee34.zip
Qt-4de04d2b15e63287e7436a4ad60a383d959aee34.tar.gz
Qt-4de04d2b15e63287e7436a4ad60a383d959aee34.tar.bz2
use at() instead of [] for const access
Diffstat (limited to 'src')
-rw-r--r--src/gui/painting/qcolormap_qpa.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qcolormap_qpa.cpp b/src/gui/painting/qcolormap_qpa.cpp
index 1f4fea8..f66607b 100644
--- a/src/gui/painting/qcolormap_qpa.cpp
+++ b/src/gui/painting/qcolormap_qpa.cpp
@@ -70,7 +70,7 @@ void QColormap::initialize()
QPlatformIntegration *pi = QApplicationPrivate::platformIntegration();
QList<QPlatformScreen*> screens = pi->screens();
- screenMap->depth = screens[0]->depth();
+ screenMap->depth = screens.at(0)->depth();
if (screenMap->depth < 8) {
screenMap->mode = QColormap::Indexed;
screenMap->numcolors = 256;