summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--tests/glibmm_valuearray/main.cc4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index cfa11c56..557aa57f 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 13357d4a..a9054601 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();