diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-05-15 21:08:50 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-05-16 09:34:49 +0200 |
commit | 601ae6910288c7f3abdbb11de644c17b3b2d0cb5 (patch) | |
tree | d2b46c81d7a446fdc173dddd65ec6bdee89c0e23 /sw/qa/extras/uiwriter/uiwriter6.cxx | |
parent | c8a5dc46d11f2ef1e3a66d633730d9a700ced24a (diff) |
WaE: C6011 Dereferencing NULL pointer warnings
Change-Id: If4ca47bc4d8203ed7d20e1bbf1c3ebe2587c403f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167709
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'sw/qa/extras/uiwriter/uiwriter6.cxx')
-rw-r--r-- | sw/qa/extras/uiwriter/uiwriter6.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/qa/extras/uiwriter/uiwriter6.cxx b/sw/qa/extras/uiwriter/uiwriter6.cxx index ce525954ace9..43c74906e10d 100644 --- a/sw/qa/extras/uiwriter/uiwriter6.cxx +++ b/sw/qa/extras/uiwriter/uiwriter6.cxx @@ -2180,6 +2180,7 @@ CPPUNIT_TEST_FIXTURE(SwUiWriterTest6, testTdf65535) // choose the word "Baaed" from the spelling suggestions of the context menu SfxViewShell* pViewShell = SfxViewShell::Current(); + CPPUNIT_ASSERT(pViewShell); { static constexpr OUStringLiteral sApplyRule(u"Spelling_Baaed"); SfxStringItem aApplyItem(FN_PARAM_1, sApplyRule); |