[glibmm] Bug #594173 - NodeTree::get_root() violates const-correctness



commit dbfd69a346f89763753601059ec05fa9cfa4fd3d
Author: Alexander Shaduri <ashaduri gmail com>
Date:   Tue Jan 5 23:48:12 2010 -0600

    Bug #594173 - NodeTree::get_root() violates const-correctness
    
    Explicitly cast the const away here to avoid an error with Intel compiler

 glib/src/nodetree.hg |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glib/src/nodetree.hg b/glib/src/nodetree.hg
index 4d49fbb..c8f89fb 100644
--- a/glib/src/nodetree.hg
+++ b/glib/src/nodetree.hg
@@ -273,7 +273,7 @@ public:
 
   const NodeTree<T>* get_root() const
   {
-    return wrap(g_node_get_root(gobj()));
+    return wrap(g_node_get_root(const_cast<GNode*>(gobj())));
   }
   _IGNORE(g_node_get_root)
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]