changeset 27668:7ffe081140ef

fix compilation warning for old style cast (bug #57203) * settings-dialog.cc (read_varedit_colors): fix old style cast * variable-editor.cc (notice_settings): fix old style cast
author Torsten Lilge <ttl-octave@mailbox.org>
date Mon, 11 Nov 2019 20:22:52 +0100
parents 41b32ddb2262
children 271b5cd640d7
files libgui/src/settings-dialog.cc libgui/src/variable-editor.cc
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libgui/src/settings-dialog.cc	Mon Nov 11 19:16:04 2019 +0100
+++ b/libgui/src/settings-dialog.cc	Mon Nov 11 20:22:52 2019 +0100
@@ -1178,7 +1178,7 @@
         // The default colors are given as color roles for
         // the application's palette
         QColor default_color = qApp->palette ().color
-                              ((QPalette::ColorRole) ve_colors[i].def.toInt ());
+                              (static_cast<QPalette::ColorRole> (ve_colors[i].def.toInt ()));
         QColor setting_color =
             settings->value (ve_colors[i].key, default_color).value<QColor> ();
 
--- a/libgui/src/variable-editor.cc	Mon Nov 11 19:16:04 2019 +0100
+++ b/libgui/src/variable-editor.cc	Mon Nov 11 20:22:52 2019 +0100
@@ -1391,7 +1391,7 @@
         // The default colors are given as color roles for
         // the application's palette
         QColor default_color = qApp->palette ().color
-                              ((QPalette::ColorRole) ve_colors[i].def.toInt ());
+                              (static_cast<QPalette::ColorRole> (ve_colors[i].def.toInt ()));
         QColor setting_color =
             settings->value (ve_colors[i].key, default_color).value<QColor> ();