From 6e01406539bbd44acc1e13aba6ab2d2a2c865780 Mon Sep 17 00:00:00 2001 From: Markus Stange Date: Sun, 17 Sep 2017 13:41:14 +0200 Subject: [PATCH] Bug 1402498 - Mark two methods of AxisPhysicsModel as const. r=rhunt MozReview-Commit-ID: BTL8YwAIHtu --HG-- extra : rebase_source : 9465825c5658d7caec453046f651ad830bacdb13 --- gfx/layers/AxisPhysicsModel.cpp | 4 ++-- gfx/layers/AxisPhysicsModel.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gfx/layers/AxisPhysicsModel.cpp b/gfx/layers/AxisPhysicsModel.cpp index 3ae686d16dcc..8479e3d28e2e 100644 --- a/gfx/layers/AxisPhysicsModel.cpp +++ b/gfx/layers/AxisPhysicsModel.cpp @@ -47,13 +47,13 @@ AxisPhysicsModel::~AxisPhysicsModel() } double -AxisPhysicsModel::GetVelocity() +AxisPhysicsModel::GetVelocity() const { return LinearInterpolate(mPrevState.v, mNextState.v, mProgress); } double -AxisPhysicsModel::GetPosition() +AxisPhysicsModel::GetPosition() const { return LinearInterpolate(mPrevState.p, mNextState.p, mProgress); } diff --git a/gfx/layers/AxisPhysicsModel.h b/gfx/layers/AxisPhysicsModel.h index eed0c67c5b5a..08a4846b723d 100644 --- a/gfx/layers/AxisPhysicsModel.h +++ b/gfx/layers/AxisPhysicsModel.h @@ -37,7 +37,7 @@ public: /** * Gets the raw velocity of this axis at this moment. */ - double GetVelocity(); + double GetVelocity() const; /** * Sets the raw velocity of this axis at this moment. @@ -47,7 +47,7 @@ public: /** * Gets the raw position of this axis at this moment. */ - double GetPosition(); + double GetPosition() const; /** * Sets the raw position of this axis at this moment.