diff options
author | Noel <noelgrandin@gmail.com> | 2020-10-26 14:17:32 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-10-28 07:21:59 +0100 |
commit | 6436302f40252bc6619e304e2051115fee902e20 (patch) | |
tree | a32659b4fecc9fbf8fad3e379ddd8645a2a52e0b /sw/qa/extras/layout | |
parent | 35f16614ee7ddf518d4c01de6b1d800f5ff1ba7e (diff) |
convert some more long -> tools::Long
grepping for stuff in template params this time
Change-Id: Ia37bfd85480b3a72c3c465489581d56ad8dde851
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104855
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/qa/extras/layout')
-rw-r--r-- | sw/qa/extras/layout/layout.cxx | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/sw/qa/extras/layout/layout.cxx b/sw/qa/extras/layout/layout.cxx index 95891b40d7b1..4b6e9c22bd62 100644 --- a/sw/qa/extras/layout/layout.cxx +++ b/sw/qa/extras/layout/layout.cxx @@ -851,10 +851,14 @@ CPPUNIT_TEST_FIXTURE(SwLayoutWriter, TestTdf137025) CPPUNIT_ASSERT(pFrameFormat); // The shape has these values to copy to the associated text frame after modification:: - const tools::Long nLPaddng = xShapeProps->getPropertyValue("TextLeftDistance").get<long>(); - const tools::Long nRPaddng = xShapeProps->getPropertyValue("TextRightDistance").get<long>(); - const tools::Long nTPaddng = xShapeProps->getPropertyValue("TextUpperDistance").get<long>(); - const tools::Long nBPaddng = xShapeProps->getPropertyValue("TextLowerDistance").get<long>(); + const tools::Long nLPaddng + = xShapeProps->getPropertyValue("TextLeftDistance").get<tools::Long>(); + const tools::Long nRPaddng + = xShapeProps->getPropertyValue("TextRightDistance").get<tools::Long>(); + const tools::Long nTPaddng + = xShapeProps->getPropertyValue("TextUpperDistance").get<tools::Long>(); + const tools::Long nBPaddng + = xShapeProps->getPropertyValue("TextLowerDistance").get<tools::Long>(); CPPUNIT_ASSERT_EQUAL(tools::Long(1000), nLPaddng); CPPUNIT_ASSERT_EQUAL(tools::Long(2000), nRPaddng); @@ -868,13 +872,13 @@ CPPUNIT_TEST_FIXTURE(SwLayoutWriter, TestTdf137025) uno::Reference<beans::XPropertySet> xFrameProps(xTxFrm, uno::UNO_QUERY); const tools::Long nFrameLeftPaddng - = xFrameProps->getPropertyValue("LeftBorderDistance").get<long>(); + = xFrameProps->getPropertyValue("LeftBorderDistance").get<tools::Long>(); const tools::Long nFrameRightPaddng - = xFrameProps->getPropertyValue("RightBorderDistance").get<long>(); + = xFrameProps->getPropertyValue("RightBorderDistance").get<tools::Long>(); const tools::Long nFrameTopPaddng - = xFrameProps->getPropertyValue("TopBorderDistance").get<long>(); + = xFrameProps->getPropertyValue("TopBorderDistance").get<tools::Long>(); const tools::Long nFrameBottomPaddng - = xFrameProps->getPropertyValue("BottomBorderDistance").get<long>(); + = xFrameProps->getPropertyValue("BottomBorderDistance").get<tools::Long>(); // Check if the shape and frame have different setting CPPUNIT_ASSERT_EQUAL(nLPaddng, nFrameLeftPaddng); |