[Libreoffice-commits] core.git: xmlsecurity/qa
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Sat Aug 8 10:36:48 UTC 2020
xmlsecurity/qa/unit/signing/signing2.cxx | 2 --
1 file changed, 2 deletions(-)
New commits:
commit 393c3930c8cedb2fcf380539c57d8da5cfb31572
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Fri Aug 7 21:53:13 2020 +0200
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Sat Aug 8 12:36:13 2020 +0200
Remove dead code
mxComponent is known to be null at the start of a test function
Change-Id: Ifb3b7dd33769ef71d980fb110eab2dceb03bc52c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100370
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/xmlsecurity/qa/unit/signing/signing2.cxx b/xmlsecurity/qa/unit/signing/signing2.cxx
index 2430840499ac..ea88982b9be8 100644
--- a/xmlsecurity/qa/unit/signing/signing2.cxx
+++ b/xmlsecurity/qa/unit/signing/signing2.cxx
@@ -81,8 +81,6 @@ CPPUNIT_TEST_FIXTURE(SigningTest2, testPreserveMacroSignatureODB)
const OUString sLoadMessage = "loading failed: " + aURL;
// load the file
- if (mxComponent.is())
- mxComponent->dispose();
mxComponent = loadFromDesktop(aURL, "com.sun.star.sdb.OfficeDatabaseDocument");
CPPUNIT_ASSERT_MESSAGE(OUStringToOString(sLoadMessage, RTL_TEXTENCODING_UTF8).getStr(),
mxComponent.is());
More information about the Libreoffice-commits
mailing list