summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Alburquerque <jaalburqu@svn.gnome.org>2009-07-03 19:46:01 -0400
committerJosé Alburquerque <jaalburqu@svn.gnome.org>2009-07-03 19:46:01 -0400
commit782472fd4f208ed59b0a6b353a63eb5ebd3e7e7f (patch)
tree9f665b1778f58a3aa8e6e8d963a94e4a6ffb873b
parentf2802cf768a4e10247f5ad94a67b020a954ebd70 (diff)
downloadglibmm-782472fd4f208ed59b0a6b353a63eb5ebd3e7e7f.tar.gz
Use references to store casts in glibmm_valuearray test.
-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();