diff options
author | Radhey Parekh <radhey.parekh@gmail.com> | 2021-08-24 22:13:40 +0530 |
---|---|---|
committer | Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> | 2021-08-26 16:06:08 +0200 |
commit | b3f3f0cb2a5ea7873349f733b55e41c1cbc671dc (patch) | |
tree | 3389caf3a8bed7cab75312e7d536369e51b5c744 /sc | |
parent | 2d64e7c4de4d675a4d594e90347bead827af8500 (diff) |
tdf#139734 Drop redundant asserts after MacrosTest::loadFromDesktop
Change-Id: I8ccb5e43ac86ff2b8da94bd03e6fa50de0c33741
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120961
Tested-by: Jenkins
Reviewed-by: Hossein <hossein@libreoffice.org>
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/extras/macros-test.cxx | 1 | ||||
-rw-r--r-- | sc/qa/extras/scstylefamiliesobj.cxx | 2 | ||||
-rw-r--r-- | sc/qa/extras/scuniquecellformatsobj.cxx | 1 | ||||
-rw-r--r-- | sc/qa/perf/scperfobj.cxx | 2 |
4 files changed, 0 insertions, 6 deletions
diff --git a/sc/qa/extras/macros-test.cxx b/sc/qa/extras/macros-test.cxx index f7b33dd04768..885c7d351f6e 100644 --- a/sc/qa/extras/macros-test.cxx +++ b/sc/qa/extras/macros-test.cxx @@ -1096,7 +1096,6 @@ void ScMacrosTest::testTdf90278() OUString aFileName; createFileURL(u"tdf90278.xls", aFileName); auto xComponent = loadFromDesktop(aFileName, "com.sun.star.sheet.SpreadsheetDocument"); - CPPUNIT_ASSERT(xComponent); SfxObjectShell* pFoundShell = SfxObjectShell::GetShellFromComponent(xComponent); CPPUNIT_ASSERT(pFoundShell); diff --git a/sc/qa/extras/scstylefamiliesobj.cxx b/sc/qa/extras/scstylefamiliesobj.cxx index 5a7197736965..9b789d9357b6 100644 --- a/sc/qa/extras/scstylefamiliesobj.cxx +++ b/sc/qa/extras/scstylefamiliesobj.cxx @@ -125,10 +125,8 @@ void ScStyleFamiliesObj::setUp() CalcUnoApiTest::setUp(); // create a calc document m_xComponent = loadFromDesktop("private:factory/scalc"); - CPPUNIT_ASSERT_MESSAGE("no component", m_xComponent.is()); m_xSrcComponent = loadFromDesktop(getTestURL()); - CPPUNIT_ASSERT_MESSAGE("no src component", m_xSrcComponent.is()); } void ScStyleFamiliesObj::tearDown() diff --git a/sc/qa/extras/scuniquecellformatsobj.cxx b/sc/qa/extras/scuniquecellformatsobj.cxx index 6921ec55c131..e3050200e72f 100644 --- a/sc/qa/extras/scuniquecellformatsobj.cxx +++ b/sc/qa/extras/scuniquecellformatsobj.cxx @@ -85,7 +85,6 @@ void ScUniqueCellFormatsObj::setUp() { CalcUnoApiTest::setUp(); m_xComponent = loadFromDesktop("private:factory/scalc"); - CPPUNIT_ASSERT_MESSAGE("no component", m_xComponent.is()); } void ScUniqueCellFormatsObj::tearDown() diff --git a/sc/qa/perf/scperfobj.cxx b/sc/qa/perf/scperfobj.cxx index fb7854bd88be..7b9ed7927098 100644 --- a/sc/qa/perf/scperfobj.cxx +++ b/sc/qa/perf/scperfobj.cxx @@ -114,8 +114,6 @@ uno::Reference< uno::XInterface > ScPerfObj::init(const OUString& aFileName) mxComponent = loadFromDesktop(aFileURL); - CPPUNIT_ASSERT(mxComponent.is()); - return mxComponent; } |