aboutsummaryrefslogtreecommitdiffstats
path: root/tests/libother
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.lima@openbossa.org>2010-06-14 15:03:29 -0300
committerHugo Parente Lima <hugo.lima@openbossa.org>2010-06-15 14:34:53 -0300
commit4bab9a89c8a0bd22b1a95e46cf75d9e2dd7f42e1 (patch)
treee607d9389ae53de2ddc6010262bf746fd3a60478 /tests/libother
parentf516832ae986a42e7b01f2bcf01b1f1c76259718 (diff)
Fix problems on MacOSX due to uninitialized variables and mixing of int, uint and ulong variables.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'tests/libother')
-rw-r--r--tests/libother/otherobjecttype.cpp4
-rw-r--r--tests/libother/otherobjecttype.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/libother/otherobjecttype.cpp b/tests/libother/otherobjecttype.cpp
index beffbe1ad..7cffdd6cf 100644
--- a/tests/libother/otherobjecttype.cpp
+++ b/tests/libother/otherobjecttype.cpp
@@ -35,8 +35,8 @@
#include "otherobjecttype.h"
Collector&
-operator<<(Collector& collector, OtherObjectType& obj)
+operator<<(Collector& collector, const OtherObjectType& obj)
{
- collector << static_cast<int>(obj.identifier()*2);
+ collector << obj.identifier()*2;
return collector;
}
diff --git a/tests/libother/otherobjecttype.h b/tests/libother/otherobjecttype.h
index 592a8adf2..24596fa9d 100644
--- a/tests/libother/otherobjecttype.h
+++ b/tests/libother/otherobjecttype.h
@@ -49,7 +49,7 @@ public:
};
-LIBOTHER_API Collector& operator<<(Collector&, OtherObjectType&);
+LIBOTHER_API Collector& operator<<(Collector&, const OtherObjectType&);
#endif // OTHEROBJECTTYPE_H