summaryrefslogtreecommitdiffstats
path: root/src/widgets/styles/qgtkstyle.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2015-03-05 22:25:45 -0800
committerThiago Macieira <thiago.macieira@intel.com>2015-03-17 01:26:00 +0000
commit4cdff7a0ea95a881bba859157e6eb847f6c10dc5 (patch)
treed6eeffb4d847e1e0c9eee2d26e0713c985d979c4 /src/widgets/styles/qgtkstyle.cpp
parent4da46bbb9a1b97759f3552c58e1b6d48e290e8ef (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/styles/qgtkstyle.cpp')
-rw-r--r--src/widgets/styles/qgtkstyle.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widgets/styles/qgtkstyle.cpp b/src/widgets/styles/qgtkstyle.cpp
index a585755ddd..348727b328 100644
--- a/src/widgets/styles/qgtkstyle.cpp
+++ b/src/widgets/styles/qgtkstyle.cpp
@@ -4056,7 +4056,7 @@ QPixmap QGtkStyle::standardPixmap(StandardPixmap sp, const QStyleOption *option,
switch (sp) {
case SP_TitleBarNormalButton: {
- QImage restoreButton((const char **)dock_widget_restore_xpm);
+ QImage restoreButton(dock_widget_restore_xpm);
QColor alphaCorner = restoreButton.color(2);
alphaCorner.setAlpha(80);
restoreButton.setColor(2, alphaCorner.rgba());
@@ -4069,7 +4069,7 @@ QPixmap QGtkStyle::standardPixmap(StandardPixmap sp, const QStyleOption *option,
case SP_TitleBarCloseButton: // Fall through
case SP_DockWidgetCloseButton: {
- QImage closeButton((const char **)dock_widget_close_xpm);
+ QImage closeButton(dock_widget_close_xpm);
QColor alphaCorner = closeButton.color(2);
alphaCorner.setAlpha(80);
closeButton.setColor(2, alphaCorner.rgba());