diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-01-22 07:46:10 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-01-23 11:37:05 +0000 |
commit | 61eb66bd2d03b45a6ed45c0acf2e202643d62559 (patch) | |
tree | 7db37ca7eca71676290e5df7b9203e454736243d /starmath | |
parent | e07f5b0fb48b6a719258dfe69419330ca2a5dfec (diff) |
make starmath ByteString free
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/qa/cppunit/test_nodetotextvisitors.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/starmath/qa/cppunit/test_nodetotextvisitors.cxx b/starmath/qa/cppunit/test_nodetotextvisitors.cxx index 49002fb7c72a..4423133559e8 100644 --- a/starmath/qa/cppunit/test_nodetotextvisitors.cxx +++ b/starmath/qa/cppunit/test_nodetotextvisitors.cxx @@ -60,9 +60,8 @@ struct assertion_traits<String> static std::string toString(const String& x) { - std::string text = ByteString(x, RTL_TEXTENCODING_UTF8).GetBuffer(); OStringStream ost; - ost << text; + ost << rtl::OUStringToOString(x, RTL_TEXTENCODING_UTF8).getStr(); return ost.str(); } }; |