summaryrefslogtreecommitdiff
path: root/vcl/qa
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-10-15 14:26:35 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-10-16 11:12:31 +0200
commit87c90cec38c43efbbd9cbfad1f0f607f428043d4 (patch)
treeb65b6ccc78a4a922c027f98e4d8ab5251fdf33bb /vcl/qa
parent9b34dc20b6946698ae6ce2d5d859885bfb444633 (diff)
fix some *printf which are using "%l" ie. long specifiers
which are not portable between Linux and Windows because long is not portable. In preparation for converting long -> tools::Long Change-Id: I8bf1aa1570946ca887a6c83dd5f99c024d437336 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104374 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/qa')
-rw-r--r--vcl/qa/cppunit/complextext.cxx6
-rw-r--r--vcl/qa/cppunit/graphicfilter/filters-test.cxx2
2 files changed, 4 insertions, 4 deletions
diff --git a/vcl/qa/cppunit/complextext.cxx b/vcl/qa/cppunit/complextext.cxx
index 85a5b3991167..8cbe9b6c748e 100644
--- a/vcl/qa/cppunit/complextext.cxx
+++ b/vcl/qa/cppunit/complextext.cxx
@@ -109,9 +109,9 @@ void VclComplexTextTest::testArabic()
tools::Rectangle aRectRot = pOutDev->GetTextRect( aInput, aOneTwoThree );
// Check that we did do the rotation...
- fprintf( stderr, "%ld %ld %ld %ld\n",
- aRect.GetWidth(), aRect.GetHeight(),
- aRectRot.GetWidth(), aRectRot.GetHeight() );
+ fprintf( stderr, "%" SAL_PRIdINT64 " %" SAL_PRIdINT64 " %" SAL_PRIdINT64 " %" SAL_PRIdINT64 "\n",
+ sal_Int64(aRect.GetWidth()), sal_Int64(aRect.GetHeight()),
+ sal-Int64(aRectRot.GetWidth()), sal_Int64(aRectRot.GetHeight()) );
CPPUNIT_ASSERT( aRectRot.GetWidth() == aRect.GetHeight() );
CPPUNIT_ASSERT( aRectRot.GetHeight() == aRect.GetWidth() );
#endif
diff --git a/vcl/qa/cppunit/graphicfilter/filters-test.cxx b/vcl/qa/cppunit/graphicfilter/filters-test.cxx
index bc745fc530f8..b8d150b72d31 100644
--- a/vcl/qa/cppunit/graphicfilter/filters-test.cxx
+++ b/vcl/qa/cppunit/graphicfilter/filters-test.cxx
@@ -94,7 +94,7 @@ void VclFiltersTest::testScaling()
fprintf( stderr, "scale with type %d\n", int( i ) );
CPPUNIT_ASSERT( aBitmapEx.Scale( 0.1937046, 0.193154, i ) );
Size aAfter( aBitmapEx.GetSizePixel() );
- fprintf( stderr, "size %ld, %ld\n", aAfter.Width(), aAfter.Height() );
+ fprintf( stderr, "size %" SAL_PRIdINT64 ", %" SAL_PRIdINT64 "\n", sal_Int64(aAfter.Width()), sal_Int64(aAfter.Height()) );
CPPUNIT_ASSERT( labs (aAfter.Height() - aAfter.Width()) <= 1 );
}
}