diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2015-03-05 22:25:45 -0800 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2015-03-17 01:26:00 +0000 |
commit | 4cdff7a0ea95a881bba859157e6eb847f6c10dc5 (patch) | |
tree | d6eeffb4d847e1e0c9eee2d26e0713c985d979c4 /src/widgets/kernel/qwhatsthis.cpp | |
parent | 4da46bbb9a1b97759f3552c58e1b6d48e290e8ef (diff) |
QtWidgets: Fix const correctness in old style casts
Found with GCC's -Wcast-qual.
Change-Id: Ia0aac2f09e9245339951ffff13c94684f8498f21
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'src/widgets/kernel/qwhatsthis.cpp')
-rw-r--r-- | src/widgets/kernel/qwhatsthis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/kernel/qwhatsthis.cpp b/src/widgets/kernel/qwhatsthis.cpp index db9e09c8c2..5fb4695687 100644 --- a/src/widgets/kernel/qwhatsthis.cpp +++ b/src/widgets/kernel/qwhatsthis.cpp @@ -495,7 +495,7 @@ private slots: QWhatsThisAction::QWhatsThisAction(QObject *parent) : QAction(tr("What's This?"), parent) { #ifndef QT_NO_IMAGEFORMAT_XPM - QPixmap p((const char**)button_image); + QPixmap p(button_image); setIcon(p); #endif setCheckable(true); |