summaryrefslogtreecommitdiff
path: root/sw/qa
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2023-04-13 18:45:13 +0200
committerStephan Bergmann <sbergman@redhat.com>2023-04-14 08:11:44 +0200
commit7cdbe504ff3b59d3aec1b1e86caf7f24223dce72 (patch)
tree4d9758290efc01a6cc4705a93f7c97b2a6ecf555 /sw/qa
parent83617ef36a6e962d0f90a413950032781bba1cf9 (diff)
Fix what looks like copy/paste typos
...introduced in 398275ba9f4d65bebcc78864e70eee6212a84397 "tdf#115483 svl xmloff sc sw: verify all ODF 1.2 protection-key hashes". (Found with an experimental Clang build supporting __attribute__((warn_unused)) on individual ctors rather than just whole class types, and the corresponding css::uno::Reference ctor marked accordingly to report xSect2 and xSect3 as unused.) Change-Id: Ie0eb38e0011b2b457f640ade67c6e615731f165f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150368 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sw/qa')
-rw-r--r--sw/qa/extras/odfexport/odfexport.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/qa/extras/odfexport/odfexport.cxx b/sw/qa/extras/odfexport/odfexport.cxx
index c909e8feaff5..50a3bbec5f76 100644
--- a/sw/qa/extras/odfexport/odfexport.cxx
+++ b/sw/qa/extras/odfexport/odfexport.cxx
@@ -1190,10 +1190,10 @@ CPPUNIT_TEST_FIXTURE(Test, testProtectionKey)
uno::Sequence<sal_Int8> const key1(getProperty<uno::Sequence<sal_Int8>>(xSect1, "ProtectionKey"));
CPPUNIT_ASSERT(SvPasswordHelper::CompareHashPassword(key1, password));
uno::Reference<beans::XPropertySet> xSect2(xSections->getByIndex(2), uno::UNO_QUERY);
- uno::Sequence<sal_Int8> const key2(getProperty<uno::Sequence<sal_Int8>>(xSect1, "ProtectionKey"));
+ uno::Sequence<sal_Int8> const key2(getProperty<uno::Sequence<sal_Int8>>(xSect2, "ProtectionKey"));
CPPUNIT_ASSERT(SvPasswordHelper::CompareHashPassword(key2, password));
uno::Reference<beans::XPropertySet> xSect3(xSections->getByIndex(3), uno::UNO_QUERY);
- uno::Sequence<sal_Int8> const key3(getProperty<uno::Sequence<sal_Int8>>(xSect1, "ProtectionKey"));
+ uno::Sequence<sal_Int8> const key3(getProperty<uno::Sequence<sal_Int8>>(xSect3, "ProtectionKey"));
CPPUNIT_ASSERT(SvPasswordHelper::CompareHashPassword(key3, password));
// we can't assume that the user entered the password; check that we