Bug 1083398 - Sprinkle some const keywords around. r=botond

This commit is contained in:
Kartikaya Gupta 2014-10-16 10:14:37 -04:00
parent e6a9ddaca8
commit a796db47c5
4 changed files with 4 additions and 4 deletions

View File

@ -1776,7 +1776,7 @@ ScreenPoint AsyncPanZoomController::PanStart() const {
return ScreenPoint(mX.PanStart(), mY.PanStart());
}
const ScreenPoint AsyncPanZoomController::GetVelocityVector() {
const ScreenPoint AsyncPanZoomController::GetVelocityVector() const {
return ScreenPoint(mX.GetVelocity(), mY.GetVelocity());
}

View File

@ -491,7 +491,7 @@ protected:
/**
* Gets a vector of the velocities of each axis.
*/
const ScreenPoint GetVelocityVector();
const ScreenPoint GetVelocityVector() const;
/**
* Gets the first touch point from a MultiTouchInput. This gets only

View File

@ -320,7 +320,7 @@ CSSCoord Axis::ScaleWillOverscrollAmount(float aScale, CSSCoord aFocus) const {
return 0;
}
float Axis::GetVelocity() {
float Axis::GetVelocity() const {
return mAxisLocked ? 0 : mVelocity;
}

View File

@ -151,7 +151,7 @@ public:
/**
* Gets the raw velocity of this axis at this moment.
*/
float GetVelocity();
float GetVelocity() const;
/**
* Sets the raw velocity of this axis at this moment.