summaryrefslogtreecommitdiff
path: root/drawinglayer
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-10-31 11:37:17 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-11-01 07:12:23 +0100
commitc45a3488af6455a3b307f9e64bed41d23b3bae53 (patch)
treec01870fee017c1b9edcad3836d6dc124b147db1b /drawinglayer
parentdae6ba564fcf20299b7a560aeb346efc84364d41 (diff)
loplugin:constantparam in d*
Change-Id: I65c395157d2b68a549a6fecf9abf1fd46446d960 Reviewed-on: https://gerrit.libreoffice.org/44109 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'drawinglayer')
-rw-r--r--drawinglayer/source/primitive3d/sdrextrudelathetools3d.cxx11
-rw-r--r--drawinglayer/source/primitive3d/sdrextrudeprimitive3d.cxx2
-rw-r--r--drawinglayer/source/primitive3d/sdrlatheprimitive3d.cxx2
3 files changed, 7 insertions, 8 deletions
diff --git a/drawinglayer/source/primitive3d/sdrextrudelathetools3d.cxx b/drawinglayer/source/primitive3d/sdrextrudelathetools3d.cxx
index be8fc6d91368..9f740ee742e0 100644
--- a/drawinglayer/source/primitive3d/sdrextrudelathetools3d.cxx
+++ b/drawinglayer/source/primitive3d/sdrextrudelathetools3d.cxx
@@ -575,7 +575,6 @@ namespace drawinglayer
std::vector< basegfx::B3DPolyPolygon >& rFill,
const Slice3DVector& rSliceVector,
bool bCreateNormals,
- bool bSmoothHorizontalNormals,
bool bSmoothNormals,
bool bSmoothLids,
bool bClosed,
@@ -647,7 +646,7 @@ namespace drawinglayer
{
if(bCreateNormals)
{
- impCreateInBetweenNormals(aPolB, aPolA, bSmoothHorizontalNormals);
+ impCreateInBetweenNormals(aPolB, aPolA, true/*bSmoothHorizontalNormals*/);
}
{
@@ -679,7 +678,7 @@ namespace drawinglayer
if(bHasSlant)
{
- impCreateInBetweenNormals(aPolAA, aPrev, bSmoothHorizontalNormals);
+ impCreateInBetweenNormals(aPolAA, aPrev, true/*bSmoothHorizontalNormals*/);
if(bSmoothNormals)
{
@@ -742,7 +741,7 @@ namespace drawinglayer
{
if(bCreateNormals && bSmoothNormals && (nIndPrev != a + 1))
{
- impCreateInBetweenNormals(aPolAA, aPrev, bSmoothHorizontalNormals);
+ impCreateInBetweenNormals(aPolAA, aPrev, true/*bSmoothHorizontalNormals*/);
impMixNormals(aPolA, aPolAA, 0.5);
}
}
@@ -771,7 +770,7 @@ namespace drawinglayer
if(bHasSlant)
{
- impCreateInBetweenNormals(aNext, aPolBB, bSmoothHorizontalNormals);
+ impCreateInBetweenNormals(aNext, aPolBB, true/*bSmoothHorizontalNormals*/);
if(bSmoothNormals)
{
@@ -833,7 +832,7 @@ namespace drawinglayer
{
if(bCreateNormals && bSmoothNormals && (nIndNext != a))
{
- impCreateInBetweenNormals(aNext, aPolBB, bSmoothHorizontalNormals);
+ impCreateInBetweenNormals(aNext, aPolBB, true/*bSmoothHorizontalNormals*/);
impMixNormals(aPolB, aPolBB, 0.5);
}
}
diff --git a/drawinglayer/source/primitive3d/sdrextrudeprimitive3d.cxx b/drawinglayer/source/primitive3d/sdrextrudeprimitive3d.cxx
index 246894d0eab1..22120e40f10c 100644
--- a/drawinglayer/source/primitive3d/sdrextrudeprimitive3d.cxx
+++ b/drawinglayer/source/primitive3d/sdrextrudeprimitive3d.cxx
@@ -78,7 +78,7 @@ namespace drawinglayer
// create geometry
std::vector< basegfx::B3DPolyPolygon > aFill;
extractPlanesFromSlice(aFill, rSliceVector,
- bCreateNormals, true/*smoothHorizontalNormals*/, getSmoothNormals(), getSmoothLids(), false,
+ bCreateNormals, getSmoothNormals(), getSmoothLids(), false,
0.5, 0.6, bCreateTextureCoordinatesX || bCreateTextureCoordinatesY, aTexTransform);
// get full range
diff --git a/drawinglayer/source/primitive3d/sdrlatheprimitive3d.cxx b/drawinglayer/source/primitive3d/sdrlatheprimitive3d.cxx
index a63a7886e4b3..6d0f88f7b14e 100644
--- a/drawinglayer/source/primitive3d/sdrlatheprimitive3d.cxx
+++ b/drawinglayer/source/primitive3d/sdrlatheprimitive3d.cxx
@@ -73,7 +73,7 @@ namespace drawinglayer
// create geometry
std::vector< basegfx::B3DPolyPolygon > aFill;
extractPlanesFromSlice(aFill, rSliceVector,
- bCreateNormals, true/*smoothHorizontalNormals*/, getSmoothNormals(), getSmoothLids(), bClosedRotation,
+ bCreateNormals, getSmoothNormals(), getSmoothLids(), bClosedRotation,
0.85, 0.6, bCreateTextureCoordinatesX || bCreateTextureCoordinatesY, aTexTransform);
// get full range