diff options
Diffstat (limited to 'sw/qa/extras/uiwriter/uiwriter8.cxx')
-rw-r--r-- | sw/qa/extras/uiwriter/uiwriter8.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/qa/extras/uiwriter/uiwriter8.cxx b/sw/qa/extras/uiwriter/uiwriter8.cxx index d6816c67eef4..65a1352dc79b 100644 --- a/sw/qa/extras/uiwriter/uiwriter8.cxx +++ b/sw/qa/extras/uiwriter/uiwriter8.cxx @@ -1634,13 +1634,14 @@ CPPUNIT_TEST_FIXTURE(SwUiWriterTest8, testTdf132603) tools::JsonWriter aJsonWriter; pTextDoc->getPostIts(aJsonWriter); OString pChar = aJsonWriter.finishAndGetAsOString(); - std::stringstream aStream(pChar.getStr()); + std::stringstream aStream((std::string(pChar))); boost::property_tree::ptree aTree; boost::property_tree::read_json(aStream, aTree); for (const boost::property_tree::ptree::value_type& rValue : aTree.get_child("comments")) { const boost::property_tree::ptree& rComment = rValue.second; - OString aText(rComment.get<std::string>("text").c_str()); + + OString aText(rComment.get<std::string>("text")); CPPUNIT_ASSERT_EQUAL(OString("Comment"), aText); } } |