[glibmm] Use references to store casts in glibmm_valuearray test.



commit 782472fd4f208ed59b0a6b353a63eb5ebd3e7e7f
Author: José Alburquerque <jaalburqu svn gnome org>
Date:   Fri Jul 3 19:46:01 2009 -0400

    Use references to store casts in glibmm_valuearray test.

 ChangeLog                       |    5 +++++
 tests/glibmm_valuearray/main.cc |    4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index cfa11c5..557aa57 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-07-03  José Alburquerque  <jaalburqu svn gnome org>
+
+	* tests/glibmm_valuearray/main.cc: Use references to store casts in
+	glibmm_valuearray test.
+
 2009-06-30  Jonathon Jongsma  <jonathon quotidian org>
 
 	* glib/src/optiongroup.ccg:
diff --git a/tests/glibmm_valuearray/main.cc b/tests/glibmm_valuearray/main.cc
index 13357d4..a905460 100644
--- a/tests/glibmm_valuearray/main.cc
+++ b/tests/glibmm_valuearray/main.cc
@@ -3,8 +3,8 @@
 
 int on_compare(const Glib::ValueBase& v1, const Glib::ValueBase& v2)
 {
-  const Glib::Value<int> intVal1 = static_cast< const Glib::Value<int>& >(v1);
-  const Glib::Value<int> intVal2 = static_cast< const Glib::Value<int>& >(v2);
+  const Glib::Value<int>& intVal1 = static_cast< const Glib::Value<int>& >(v1);
+  const Glib::Value<int>& intVal2 = static_cast< const Glib::Value<int>& >(v2);
 
   int int1 = intVal1.get();
   int int2 = intVal2.get();



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