summaryrefslogtreecommitdiff
path: root/sw/qa/extras/uiwriter/uiwriter.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-10 10:37:49 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-10 11:21:11 +0000
commitb74f9e31b20d055b6a63865742a2c472718c8bdc (patch)
tree409916c4511150c7e5e82131905d8c8c9c9c8b63 /sw/qa/extras/uiwriter/uiwriter.cxx
parent758cf90bdb38bba826fa867783fef9d4dc056875 (diff)
coverity#1130361 Unchecked dynamic_cast
Change-Id: I2c93a085fe55098777ae7b41953f2610903b5a54
Diffstat (limited to 'sw/qa/extras/uiwriter/uiwriter.cxx')
-rw-r--r--sw/qa/extras/uiwriter/uiwriter.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/qa/extras/uiwriter/uiwriter.cxx b/sw/qa/extras/uiwriter/uiwriter.cxx
index 080b879d415c..6df74260f47f 100644
--- a/sw/qa/extras/uiwriter/uiwriter.cxx
+++ b/sw/qa/extras/uiwriter/uiwriter.cxx
@@ -49,6 +49,7 @@ SwDoc* SwUiWriterTest::createDoc(const char* pName)
load(DATA_DIRECTORY, pName);
SwXTextDocument* pTxtDoc = dynamic_cast<SwXTextDocument *>(mxComponent.get());
+ CPPUNIT_ASSERT(pTxtDoc);
return pTxtDoc->GetDocShell()->GetDoc();
}