diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2011-09-27 20:21:15 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2011-09-27 20:22:03 +0200 |
commit | 6671fa81db0ecea4ada005bb79f55f08fb440ad4 (patch) | |
tree | 85ad806ece8d60736b6b01310b04b053dc2f8179 /cppu/qa | |
parent | b6d8251eee90b7e24ebb3f8452eff36a507e6d91 (diff) |
Removed uses of rtl::O[U]String[Buffer]::operator sal_{char|Unicode} const *().
Diffstat (limited to 'cppu/qa')
-rw-r--r-- | cppu/qa/cppumaker/test_cppumaker.cxx | 12 | ||||
-rw-r--r-- | cppu/qa/test_unotype.cxx | 12 |
2 files changed, 24 insertions, 0 deletions
diff --git a/cppu/qa/cppumaker/test_cppumaker.cxx b/cppu/qa/cppumaker/test_cppumaker.cxx index 850eb10a904c..141c3e2fd1d7 100644 --- a/cppu/qa/cppumaker/test_cppumaker.cxx +++ b/cppu/qa/cppumaker/test_cppumaker.cxx @@ -378,6 +378,18 @@ #include <cstddef> #include <iostream> +//TODO, copied here from test/oustringostreaminserter.hxx, make DRY again: +#include "osl/thread.h" +template< typename charT, typename traits > std::basic_ostream<charT, traits> & +operator <<( + std::basic_ostream<charT, traits> & stream, rtl::OUString const & string) +{ + return stream << + rtl::OUStringToOString(string, osl_getThreadTextEncoding()).getStr(); + // best effort; potentially loses data due to conversion failures and + // embedded null characters +} + namespace { class Test: public CppUnit::TestFixture { diff --git a/cppu/qa/test_unotype.cxx b/cppu/qa/test_unotype.cxx index ee40c853b9b8..110ae204095c 100644 --- a/cppu/qa/test_unotype.cxx +++ b/cppu/qa/test_unotype.cxx @@ -59,6 +59,18 @@ #include "rtl/ustring.hxx" #include "sal/types.h" +//TODO, copied here from test/oustringostreaminserter.hxx, make DRY again: +#include "osl/thread.h" +template< typename charT, typename traits > std::basic_ostream<charT, traits> & +operator <<( + std::basic_ostream<charT, traits> & stream, rtl::OUString const & string) +{ + return stream << + rtl::OUStringToOString(string, osl_getThreadTextEncoding()).getStr(); + // best effort; potentially loses data due to conversion failures and + // embedded null characters +} + namespace com { namespace sun { namespace star { namespace uno { class Any; } } } } |