summaryrefslogtreecommitdiff
path: root/emfio
diff options
context:
space:
mode:
authorMuhammet Kara <muhammet.kara@collabora.com>2020-02-16 13:32:38 +0300
committerMuhammet Kara <muhammet.kara@collabora.com>2020-02-16 14:10:11 +0100
commitf99e765cb303e37e6b6c983d3ee040fa36c1e52c (patch)
treeaf3ade308690cb3c48831d26edff529de35dc10f /emfio
parent28b56c52f273a2a3471aa3ab17414648a6eb812d (diff)
clang-format c*,d*,e* with under 5-percent lines of change
Files which could become clang-format conformant with under 5-percent lines of change relative to the total count of lines in the file are found by using bin/find-clang-format.py, and fixed with /opt/lo/bin/clang-format -i <path-of-the-file> There will be follow-up patches to fix all 'under-5-percent' files. Change-Id: I06087a1385ca9da6a28d36ea4c0d2e40bdbf8f03 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88774 Tested-by: Jenkins Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
Diffstat (limited to 'emfio')
-rw-r--r--emfio/qa/cppunit/wmf/wmfimporttest.cxx25
1 files changed, 13 insertions, 12 deletions
diff --git a/emfio/qa/cppunit/wmf/wmfimporttest.cxx b/emfio/qa/cppunit/wmf/wmfimporttest.cxx
index e121f248f979..5d3c3b772de5 100644
--- a/emfio/qa/cppunit/wmf/wmfimporttest.cxx
+++ b/emfio/qa/cppunit/wmf/wmfimporttest.cxx
@@ -35,10 +35,11 @@ class WmfTest : public test::BootstrapFixture, public XmlTestTools
}
public:
- WmfTest() :
- BootstrapFixture(true, false),
- maDataUrl("/emfio/qa/cppunit/wmf/data/")
- {}
+ WmfTest()
+ : BootstrapFixture(true, false)
+ , maDataUrl("/emfio/qa/cppunit/wmf/data/")
+ {
+ }
void testNonPlaceableWmf();
void testSine();
@@ -74,7 +75,7 @@ void WmfTest::testNonPlaceableWmf()
dumper.filterActionType(MetaActionType::POLYLINE, false);
xmlDocPtr pDoc = dumpAndParse(dumper, aGDIMetaFile);
- CPPUNIT_ASSERT (pDoc);
+ CPPUNIT_ASSERT(pDoc);
assertXPath(pDoc, "/metafile/polyline[1]/point[1]", "x", "16798");
assertXPath(pDoc, "/metafile/polyline[1]/point[1]", "y", "1003");
@@ -103,7 +104,7 @@ void WmfTest::testSine()
dumper.filterActionType(MetaActionType::ISECTRECTCLIPREGION, false);
xmlDocPtr pDoc = dumpAndParse(dumper, aGDIMetaFile);
- CPPUNIT_ASSERT (pDoc);
+ CPPUNIT_ASSERT(pDoc);
assertXPath(pDoc, "/metafile/sectrectclipregion", 0);
}
@@ -119,7 +120,7 @@ void WmfTest::testEmfProblem()
dumper.filterActionType(MetaActionType::ISECTRECTCLIPREGION, false);
xmlDocPtr pDoc = dumpAndParse(dumper, aGDIMetaFile);
- CPPUNIT_ASSERT (pDoc);
+ CPPUNIT_ASSERT(pDoc);
assertXPath(pDoc, "/metafile/sectrectclipregion[1]", "top", "427");
assertXPath(pDoc, "/metafile/sectrectclipregion[1]", "left", "740");
@@ -139,7 +140,7 @@ void WmfTest::testEmfLineStyles()
dumper.filterActionType(MetaActionType::LINECOLOR, false);
xmlDocPtr pDoc = dumpAndParse(dumper, aGDIMetaFile);
- CPPUNIT_ASSERT (pDoc);
+ CPPUNIT_ASSERT(pDoc);
assertXPath(pDoc, "/metafile/line", 4);
assertXPath(pDoc, "/metafile/linecolor", 5);
@@ -198,7 +199,7 @@ void WmfTest::testWorldTransformFontSize()
dumper.filterActionType(MetaActionType::FONT, false);
xmlDocPtr pDoc = dumpAndParse(dumper, aGDIMetaFile);
- CPPUNIT_ASSERT (pDoc);
+ CPPUNIT_ASSERT(pDoc);
assertXPath(pDoc, "/metafile/font", 8);
@@ -226,7 +227,7 @@ void WmfTest::testTdf93750()
MetafileXmlDump dumper;
xmlDocPtr pDoc = dumpAndParse(dumper, aGDIMetaFile);
- CPPUNIT_ASSERT (pDoc);
+ CPPUNIT_ASSERT(pDoc);
assertXPath(pDoc, "/metafile/push[1]/comment[2]", "datasize", "28");
assertXPath(pDoc, "/metafile/push[1]/comment[3]", "datasize", "72");
@@ -256,7 +257,7 @@ void WmfTest::testTdf99402()
void WmfTest::testTdf39894()
{
OUString files[] = { "tdf39894.wmf", "tdf39894.emf" };
- for (const auto& file: files)
+ for (const auto& file : files)
{
SvFileStream aFileStream(getFullUrl(file), StreamMode::READ);
GDIMetaFile aGDIMetaFile;
@@ -277,7 +278,7 @@ void WmfTest::testTdf39894()
void WmfTest::testETO_PDY()
{
OUString files[] = { "ETO_PDY.wmf", "ETO_PDY.emf" };
- for (const auto& file: files)
+ for (const auto& file : files)
{
SvFileStream aFileStream(getFullUrl(file), StreamMode::READ);
GDIMetaFile aGDIMetaFile;