sc/qa/unit/filters-test.cxx | 2 ++ 1 file changed, 2 insertions(+) New commits: commit d67554eb97e787a3881e41e9462b2a6d0e35f64b Author: Eike Rathke <er...@redhat.com> Date: Tue Apr 15 20:38:07 2014 +0200
CID#1202821 check (unlikely) null return value Change-Id: Ib5508999b25a238f82dd8dd01b5a42fe5709589e diff --git a/sc/qa/unit/filters-test.cxx b/sc/qa/unit/filters-test.cxx index 07f3fa2..6f84075 100644 --- a/sc/qa/unit/filters-test.cxx +++ b/sc/qa/unit/filters-test.cxx @@ -506,6 +506,8 @@ void testEnhancedProtectionImpl( ScDocument* pDoc ) { const ScTableProtection* pProt = pDoc->GetTabProtection(0); + CPPUNIT_ASSERT( pProt); + CPPUNIT_ASSERT( !pProt->isBlockEditable( ScRange( 0, 0, 0, 0, 0, 0))); // locked CPPUNIT_ASSERT( pProt->isBlockEditable( ScRange( 0, 1, 0, 0, 1, 0))); // editable without password CPPUNIT_ASSERT( pProt->isBlockEditable( ScRange( 0, 2, 0, 0, 2, 0))); // editable without password _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits