Removed uses of rtl::O[U]String[Buffer]::operator sal_{char|Unicode} const *().

This commit is contained in:
Stephan Bergmann
2011-09-27 20:21:15 +02:00
parent b6d8251eee
commit 6671fa81db
117 changed files with 579 additions and 461 deletions

View File

@@ -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 {