From 3c95503cefaf996faec1adb87e296c1b8a71d221 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Wed, 19 Nov 2014 09:03:34 +0100 Subject: Use SwNode::GetTxtNode() Change-Id: Icf3e1013d5eba5702badf19aa6c1f5e6708ed154 --- sw/qa/extras/uiwriter/uiwriter.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sw/qa') diff --git a/sw/qa/extras/uiwriter/uiwriter.cxx b/sw/qa/extras/uiwriter/uiwriter.cxx index 4fa1680239c2..d79b6b352d25 100644 --- a/sw/qa/extras/uiwriter/uiwriter.cxx +++ b/sw/qa/extras/uiwriter/uiwriter.cxx @@ -239,8 +239,8 @@ void SwUiWriterTest::testImportRTF() CPPUNIT_ASSERT_EQUAL(sal_uLong(0), aReader.Read(*pRTFReader)); sal_uLong nIndex = pWrtShell->GetCrsr()->GetNode().GetIndex(); - CPPUNIT_ASSERT_EQUAL(OUString("fooHello world!"), static_cast(pDoc->GetNodes()[nIndex - 1])->GetTxt()); - CPPUNIT_ASSERT_EQUAL(OUString("bar"), static_cast(pDoc->GetNodes()[nIndex])->GetTxt()); + CPPUNIT_ASSERT_EQUAL(OUString("fooHello world!"), pDoc->GetNodes()[nIndex - 1]->GetTxtNode()->GetTxt()); + CPPUNIT_ASSERT_EQUAL(OUString("bar"), pDoc->GetNodes()[nIndex]->GetTxtNode()->GetTxt()); } void SwUiWriterTest::testExportRTF() -- cgit