diff options
author | Hugo Parente Lima <hugo.lima@openbossa.org> | 2010-06-14 15:03:29 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.lima@openbossa.org> | 2010-06-15 14:34:53 -0300 |
commit | 4bab9a89c8a0bd22b1a95e46cf75d9e2dd7f42e1 (patch) | |
tree | e607d9389ae53de2ddc6010262bf746fd3a60478 /tests/libother | |
parent | f516832ae986a42e7b01f2bcf01b1f1c76259718 (diff) | |
download | shiboken-4bab9a89c8a0bd22b1a95e46cf75d9e2dd7f42e1.tar.gz shiboken-4bab9a89c8a0bd22b1a95e46cf75d9e2dd7f42e1.tar.xz shiboken-4bab9a89c8a0bd22b1a95e46cf75d9e2dd7f42e1.zip |
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.cpp | 4 | ||||
-rw-r--r-- | tests/libother/otherobjecttype.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/libother/otherobjecttype.cpp b/tests/libother/otherobjecttype.cpp index beffbe1a..7cffdd6c 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 592a8adf..24596fa9 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 |