summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-01-22 07:46:10 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-01-23 11:37:05 +0000
commit61eb66bd2d03b45a6ed45c0acf2e202643d62559 (patch)
tree7db37ca7eca71676290e5df7b9203e454736243d /starmath
parente07f5b0fb48b6a719258dfe69419330ca2a5dfec (diff)
make starmath ByteString free
Diffstat (limited to 'starmath')
-rw-r--r--starmath/qa/cppunit/test_nodetotextvisitors.cxx3
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();
}
};