From: Vadim Zeitlin Date: Fri, 1 Jun 2007 21:21:01 +0000 (+0000) Subject: compilation fix: wxColour::GetColor() returns const object X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/1cd5e95c1c788574d01971f6f58ba33014495e35 compilation fix: wxColour::GetColor() returns const object git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46263 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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 );