diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2021-12-09 13:49:26 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-12-09 16:57:55 +0100 |
commit | b8b72fdbbba57c017fcc3bce09fe8da31826aa2a (patch) | |
tree | 14e3408823c0a7b99fea911f9e7606fb608ac91d /chart2/qa/extras/xshape | |
parent | 66b95d7117e034f63077e3ce948aa26c250e14f1 (diff) |
Remove unused bCreateReference parameter
Change-Id: Ib3656570fcefc2d29b5d363f93dbfef6ed491e3a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126611
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'chart2/qa/extras/xshape')
-rw-r--r-- | chart2/qa/extras/xshape/chart2xshape.cxx | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/chart2/qa/extras/xshape/chart2xshape.cxx b/chart2/qa/extras/xshape/chart2xshape.cxx index 4964bfc455ee..6a9b11540010 100644 --- a/chart2/qa/extras/xshape/chart2xshape.cxx +++ b/chart2/qa/extras/xshape/chart2xshape.cxx @@ -43,7 +43,7 @@ public: CPPUNIT_TEST_SUITE_END(); private: - void compareAgainstReference(std::u16string_view rReferenceFile, bool bCreateReference = false); + void compareAgainstReference(std::u16string_view rReferenceFile); OUString getXShapeDumpString(); xmlDocUniquePtr getXShapeDumpXmlDoc(); }; @@ -76,24 +76,12 @@ xmlDocUniquePtr Chart2XShapeTest::getXShapeDumpXmlDoc() return xmlDocUniquePtr(xmlParseDoc(reinterpret_cast<const xmlChar*>(aXmlDump.getStr()))); } -void Chart2XShapeTest::compareAgainstReference(std::u16string_view rReferenceFile, - bool bCreateReference) +void Chart2XShapeTest::compareAgainstReference(std::u16string_view rReferenceFile) { - OUString aDump = getXShapeDumpString(); - - OUString aReference = m_directories.getPathFromSrc(u"/chart2/qa/extras/xshape/data/reference/") - + rReferenceFile; - if (bCreateReference) - { - OString aOFile = OUStringToOString(aReference, RTL_TEXTENCODING_UTF8); - OString aODump = OUStringToOString(aDump, RTL_TEXTENCODING_UTF8); - std::ofstream aReferenceFile(aOFile.getStr()); - aReferenceFile << aODump; - } - else - { - checkDumpAgainstFile(aDump, aReference); - } + checkDumpAgainstFile(getXShapeDumpString(), + OUStringConcatenation(m_directories.getPathFromSrc( + u"/chart2/qa/extras/xshape/data/reference/") + + rReferenceFile)); } void Chart2XShapeTest::testFdo75075() |