summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDesmin Alpaslan <mavibirdesmi@gmail.com>2019-12-26 01:03:08 +0300
committerStephan Bergmann <sbergman@redhat.com>2020-02-03 15:45:39 +0100
commitf17f9bf0b3e5e548a8ef40206ebed180bda14931 (patch)
tree7bda830d4129637c0742c4a7853d8d3954922c85
parentfbebfdaa83efa94cbb0b39d6c2e2dc62488ae1ac (diff)
tdf#96505: Get rid of cargo cult long integer literals
Change-Id: Id64855e3879d21106930a4dc9c36b246deb3c6e7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/85818 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r--filter/source/graphicfilter/ipsd/ipsd.cxx6
-rw-r--r--jvmfwk/source/framework.cxx2
2 files changed, 4 insertions, 4 deletions
diff --git a/filter/source/graphicfilter/ipsd/ipsd.cxx b/filter/source/graphicfilter/ipsd/ipsd.cxx
index 7c61ae350290..3c219870f1d2 100644
--- a/filter/source/graphicfilter/ipsd/ipsd.cxx
+++ b/filter/source/graphicfilter/ipsd/ipsd.cxx
@@ -685,9 +685,9 @@ bool PSDReader::ImplReadBody()
sal_Int32 nDAT = pBlack[ nX + nY * mpFileHeader->nColumns ] * ( nBlackMax - 256 ) / 0x1ff;
aBitmapColor = mpBitmap->GetPixel( nY, nX );
- sal_uInt8 cR = static_cast<sal_uInt8>(MinMax( aBitmapColor.GetRed() - nDAT, 0L, 255L ));
- sal_uInt8 cG = static_cast<sal_uInt8>(MinMax( aBitmapColor.GetGreen() - nDAT, 0L, 255L ));
- sal_uInt8 cB = static_cast<sal_uInt8>(MinMax( aBitmapColor.GetBlue() - nDAT, 0L, 255L ));
+ sal_uInt8 cR = static_cast<sal_uInt8>(MinMax( aBitmapColor.GetRed() - nDAT, 0, 255L ));
+ sal_uInt8 cG = static_cast<sal_uInt8>(MinMax( aBitmapColor.GetGreen() - nDAT, 0, 255L ));
+ sal_uInt8 cB = static_cast<sal_uInt8>(MinMax( aBitmapColor.GetBlue() - nDAT, 0, 255L ));
mpBitmap->SetPixel( nY, nX, Color( cR, cG, cB ) );
}
}
diff --git a/jvmfwk/source/framework.cxx b/jvmfwk/source/framework.cxx
index 60d7dd796c20..67b65acb8a5c 100644
--- a/jvmfwk/source/framework.cxx
+++ b/jvmfwk/source/framework.cxx
@@ -309,7 +309,7 @@ javaFrameworkError jfw_findAndSelectJRE(std::unique_ptr<JavaInfo> *pInfo)
//Determine if accessibility support is needed
bool bSupportAccessibility = jfw::isAccessibilitySupportDesired();
nFeatureFlags = bSupportAccessibility ?
- JFW_FEATURE_ACCESSBRIDGE : 0L;
+ JFW_FEATURE_ACCESSBRIDGE : 0;
// 'bInfoFound' indicates whether a Java installation has been found