[Libreoffice-commits] .: testtools/source
Caolán McNamara
caolan at kemper.freedesktop.org
Tue Mar 1 12:40:54 PST 2011
testtools/source/bridgetest/multi.cxx | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit ef8e3e0a135f1174fdc2bbdc6ac2e67feb6bbe3e
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Mar 1 15:07:36 2011 +0000
add explicit stream operator
diff --git a/testtools/source/bridgetest/multi.cxx b/testtools/source/bridgetest/multi.cxx
index f3d90db..f64c930 100644
--- a/testtools/source/bridgetest/multi.cxx
+++ b/testtools/source/bridgetest/multi.cxx
@@ -50,6 +50,11 @@ struct CheckFailed {
rtl::OUString message;
};
+::std::ostream& operator<< (::std::ostream& os, const ::rtl::OUString& str)
+{
+ return os << ::rtl::OUStringToOString(str, RTL_TEXTENCODING_UTF8).getStr();
+}
+
template< typename T > void checkEqual(T const & value, T const & argument) {
if (argument != value) {
std::ostringstream s;
More information about the Libreoffice-commits
mailing list