summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRosen <rosen@live.com>2016-09-23 07:29:44 +0530
committerjan iversen <jani@documentfoundation.org>2016-10-25 07:14:26 +0000
commit8ae33b1652cb1e654c426350169d3bb9fa031a4f (patch)
tree5e6da91a27f6afeacbcc886753f355a25998f204
parent0560f6cc3cd83923f03ec909a1771c6a984ee25d (diff)
tdf#96505 Get rid of cargo cult "long" integer literals
fixed all long integer literals in file Change-Id: Ib557d88d4e4f17d5c334c92d611d002fe163f2f6 Reviewed-on: https://gerrit.libreoffice.org/29235 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org>
-rw-r--r--cppcanvas/source/mtfrenderer/implrenderer.cxx8
-rw-r--r--drawinglayer/source/primitive2d/animatedprimitive2d.cxx2
2 files changed, 5 insertions, 5 deletions
diff --git a/cppcanvas/source/mtfrenderer/implrenderer.cxx b/cppcanvas/source/mtfrenderer/implrenderer.cxx
index 0491553a42ff..2a2bcc257796 100644
--- a/cppcanvas/source/mtfrenderer/implrenderer.cxx
+++ b/cppcanvas/source/mtfrenderer/implrenderer.cxx
@@ -1577,8 +1577,8 @@ namespace cppcanvas
// #i44110# correct null-sized output - there
// are metafiles which have zero size in at
// least one dimension
- const Size aMtfSizePix( ::std::max( aMtfSizePixPre.Width(), 1L ),
- ::std::max( aMtfSizePixPre.Height(), 1L ) );
+ const Size aMtfSizePix( ::std::max( (int)aMtfSizePixPre.Width(), 1 ),
+ ::std::max( (int)aMtfSizePixPre.Height(), 1 ) );
// Setup local transform, such that the
// metafile renders itself into the given
@@ -2914,8 +2914,8 @@ namespace cppcanvas
// #i44110# correct null-sized output - there are shapes
// which have zero size in at least one dimension
- const Size aMtfSizePix( ::std::max( aMtfSizePixPre.Width(), 1L ),
- ::std::max( aMtfSizePixPre.Height(), 1L ) );
+ const Size aMtfSizePix( ::std::max( (int)aMtfSizePixPre.Width(), 1 ),
+ ::std::max( (int)aMtfSizePixPre.Height(), 1 ) );
sal_Int32 nCurrActions(0);
ActionFactoryParameters aParms(aStateStack,
diff --git a/drawinglayer/source/primitive2d/animatedprimitive2d.cxx b/drawinglayer/source/primitive2d/animatedprimitive2d.cxx
index 2fa2916f1498..2ea970a84ea0 100644
--- a/drawinglayer/source/primitive2d/animatedprimitive2d.cxx
+++ b/drawinglayer/source/primitive2d/animatedprimitive2d.cxx
@@ -80,7 +80,7 @@ namespace drawinglayer
if(nIndex >= nLen)
{
- nIndex = nLen - 1L;
+ nIndex = nLen - 1;
}
const Primitive2DReference xRef(getChildren()[nIndex], uno::UNO_QUERY_THROW);