summaryrefslogtreecommitdiff
path: root/slideshow/source/inc/box2dtools.hxx
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-10-06 15:32:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-10-06 18:37:47 +0200
commit1f8fbff65d91f1d8297b94dd67fffceb7475dce5 (patch)
tree35ecc29ca2734db28e69cfb22c54e0e2d0ad3580 /slideshow/source/inc/box2dtools.hxx
parent4bc31abb56f806ee399344160ce0d7c27af48f5e (diff)
loplugin:const* make some params and methods const
Change-Id: I97c5bbb929a2a4a029af4e6cb0fd571bbc2b698b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104030 Tested-by: Noel Grandin <noel.grandin@collabora.co.uk> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'slideshow/source/inc/box2dtools.hxx')
-rw-r--r--slideshow/source/inc/box2dtools.hxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/slideshow/source/inc/box2dtools.hxx b/slideshow/source/inc/box2dtools.hxx
index c17fb1648a51..53eaf0b88fad 100644
--- a/slideshow/source/inc/box2dtools.hxx
+++ b/slideshow/source/inc/box2dtools.hxx
@@ -261,7 +261,7 @@ public:
/// @return whether shapes in the slide are initialized as Box2D bodies or not
bool shapesInitialized();
/// @return whether the Box2D World is initialized or not
- bool isInitialized();
+ bool isInitialized() const;
/** Make the shape's corresponding box2D body a dynamic one.
@@ -311,7 +311,7 @@ public:
initateAllShapesAsStaticBodies(const slideshow::internal::ShapeManagerSharedPtr& pShapeManager);
/// @return whether the box2DWorld has a stepper or not
- bool hasWorldStepper();
+ bool hasWorldStepper() const;
/// Set the flag for whether the box2DWorld has a stepper or not
void setHasWorldStepper(const bool bHasWorldStepper);
@@ -375,7 +375,7 @@ public:
box2DBody(std::shared_ptr<b2Body> pBox2DBody, double fScaleFactor);
/// @return current position in LO user space coordinates
- ::basegfx::B2DPoint getPosition();
+ ::basegfx::B2DPoint getPosition() const;
/** Set the position of box2d body
@@ -429,7 +429,7 @@ public:
void setCollision(const bool bCanCollide);
/// @return current angle of rotation of the body
- double getAngle();
+ double getAngle() const;
/** Set angle of the box2d body
@@ -459,7 +459,7 @@ public:
void setType(box2DBodyType eType);
/// @return type of the body
- box2DBodyType getType();
+ box2DBodyType getType() const;
};
/** Make the Box2D body a dynamic one