From 1cd5e95c1c788574d01971f6f58ba33014495e35 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 1 Jun 2007 21:21:01 +0000 Subject: [PATCH] compilation fix: wxColour::GetColor() returns const object git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46263 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/dataview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gtk/dataview.cpp b/src/gtk/dataview.cpp index 2d3b5bb7fe..46bea947cc 100644 --- a/src/gtk/dataview.cpp +++ b/src/gtk/dataview.cpp @@ -1656,7 +1656,7 @@ static void wxGtkTreeCellDataFunc( GtkTreeViewColumn *column, if (attr.HasBackgroundColour()) { wxColour colour = attr.GetBackgroundColour(); - GdkColor *gcol = colour.GetColor(); + const GdkColor * const gcol = colour.GetColor(); GValue gvalue = { 0, }; g_value_init( &gvalue, GDK_TYPE_COLOR ); -- 2.45.2