diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:10:40 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:10:40 +0100 |
commit | 55f07d4daa76503530d96b9c20b53c59bcd5bcf9 (patch) | |
tree | 7ad8a720341e38258dab12597d25616c3bff8807 /vcl/qa | |
parent | e235da515af0e2a5d5a0cf80773943b65fdb8f7b (diff) |
More loplugin:cstylecast: vcl
auto-rewrite with <https://gerrit.libreoffice.org/#/c/47798/> "Enable
loplugin:cstylecast for some more cases" plus
solenv/clang-format/reformat-formatted-files
Change-Id: I363c01a1ae9e863fca4fb4589829492d7280d711
Diffstat (limited to 'vcl/qa')
-rw-r--r-- | vcl/qa/cppunit/BitmapTest.cxx | 2 | ||||
-rw-r--r-- | vcl/qa/cppunit/font.cxx | 8 | ||||
-rw-r--r-- | vcl/qa/cppunit/graphicfilter/filters-test.cxx | 6 |
3 files changed, 8 insertions, 8 deletions
diff --git a/vcl/qa/cppunit/BitmapTest.cxx b/vcl/qa/cppunit/BitmapTest.cxx index d68de41370b3..242969d250f9 100644 --- a/vcl/qa/cppunit/BitmapTest.cxx +++ b/vcl/qa/cppunit/BitmapTest.cxx @@ -160,7 +160,7 @@ void checkAndInsert(CRCHash &rHash, sal_uInt64 nCRC, const char *pLocation) aBuf.append(" and "); aBuf.append(it->second); aBuf.append(" hash is 0x"); - aBuf.append((sal_Int64)nCRC, 16); + aBuf.append(static_cast<sal_Int64>(nCRC), 16); CPPUNIT_FAIL(aBuf.toString().getStr()); } rHash[nCRC] = pLocation; diff --git a/vcl/qa/cppunit/font.cxx b/vcl/qa/cppunit/font.cxx index 049e2118fd60..4f1c56ab29d1 100644 --- a/vcl/qa/cppunit/font.cxx +++ b/vcl/qa/cppunit/font.cxx @@ -111,16 +111,16 @@ void VclFontTest::testQuality() { vcl::Font aFont; - CPPUNIT_ASSERT_EQUAL( (int)0, aFont.GetQuality() ); + CPPUNIT_ASSERT_EQUAL( int(0), aFont.GetQuality() ); aFont.SetQuality( 100 ); - CPPUNIT_ASSERT_EQUAL( (int)100, aFont.GetQuality() ); + CPPUNIT_ASSERT_EQUAL( int(100), aFont.GetQuality() ); aFont.IncreaseQualityBy( 50 ); - CPPUNIT_ASSERT_EQUAL( (int)150, aFont.GetQuality() ); + CPPUNIT_ASSERT_EQUAL( int(150), aFont.GetQuality() ); aFont.DecreaseQualityBy( 100 ); - CPPUNIT_ASSERT_EQUAL( (int)50, aFont.GetQuality() ); + CPPUNIT_ASSERT_EQUAL( int(50), aFont.GetQuality() ); } diff --git a/vcl/qa/cppunit/graphicfilter/filters-test.cxx b/vcl/qa/cppunit/graphicfilter/filters-test.cxx index e9e3817cd161..f4381df1d115 100644 --- a/vcl/qa/cppunit/graphicfilter/filters-test.cxx +++ b/vcl/qa/cppunit/graphicfilter/filters-test.cxx @@ -110,11 +110,11 @@ void VclFiltersTest::checkExportImport(const OUString& aFilterShortName) css::uno::Sequence< css::beans::PropertyValue > aFilterData( 3 ); aFilterData[ 0 ].Name = "Interlaced"; - aFilterData[ 0 ].Value <<= (sal_Int32) 0; + aFilterData[ 0 ].Value <<= sal_Int32(0); aFilterData[ 1 ].Name = "Compression"; - aFilterData[ 1 ].Value <<= (sal_Int32) 1; + aFilterData[ 1 ].Value <<= sal_Int32(1); aFilterData[ 2 ].Name = "Quality"; - aFilterData[ 2 ].Value <<= (sal_Int32) 90; + aFilterData[ 2 ].Value <<= sal_Int32(90); sal_uInt16 aFilterType = mGraphicFilter.GetExportFormatNumberForShortName(aFilterShortName); mGraphicFilter.ExportGraphic( aBitmap, OUString(), aStream, aFilterType, &aFilterData ); |