diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-16 18:32:28 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-16 18:40:06 +0100 |
commit | 7b3e7c46d7245aba87a3f4742b2c7911095a3bc0 (patch) | |
tree | 1653c4ce8a93902373219dd37eaf3b4f83c31a1f | |
parent | 3557c07899e363a9b7e1cceca632ad9112d039a2 (diff) |
Assert SwReaderWriter::GetReader returning non-null
...happened to fail for me once, for unclear reasons.
Change-Id: Idf88ff4952924a814e465b039fbae384691ba7a6
-rw-r--r-- | sw/qa/extras/uiwriter/uiwriter.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/qa/extras/uiwriter/uiwriter.cxx b/sw/qa/extras/uiwriter/uiwriter.cxx index a40f4c034c44..080b879d415c 100644 --- a/sw/qa/extras/uiwriter/uiwriter.cxx +++ b/sw/qa/extras/uiwriter/uiwriter.cxx @@ -163,6 +163,7 @@ void SwUiWriterTest::testImportRTF() SvMemoryStream aStream(const_cast<sal_Char*>(aData.getStr()), aData.getLength(), STREAM_READ); SwReader aReader(aStream, OUString(), OUString(), *pWrtShell->GetCrsr()); Reader* pRTFReader = SwReaderWriter::GetReader(READER_WRITER_RTF); + CPPUNIT_ASSERT(pRTFReader != 0); CPPUNIT_ASSERT_EQUAL(sal_uLong(0), aReader.Read(*pRTFReader)); sal_uLong nIndex = pWrtShell->GetCrsr()->GetNode()->GetIndex(); |