summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Zixuan Qu <zixuanqu@google.com> 2023-03-20 19:05:51 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2023-03-20 19:05:51 +0000
commitad6407cd288c92c22d06cc817d110c4e1e74122c (patch)
tree0d14c561c6bdbebe7fbbc0fad695391d5cd3a542
parent8da6fdf0a94531247914156738f539a1b439e86c (diff)
parentad07441030340f3c455ab52252f9a625b829f2c4 (diff)
Merge "Make VelocityControl::getParameters() const."
-rw-r--r--include/input/VelocityControl.h2
-rw-r--r--libs/input/VelocityControl.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/input/VelocityControl.h b/include/input/VelocityControl.h
index f3c201e7c4..b78f63e1ae 100644
--- a/include/input/VelocityControl.h
+++ b/include/input/VelocityControl.h
@@ -88,7 +88,7 @@ public:
VelocityControl();
/* Gets the various parameters. */
- VelocityControlParameters& getParameters();
+ const VelocityControlParameters& getParameters() const;
/* Sets the various parameters. */
void setParameters(const VelocityControlParameters& parameters);
diff --git a/libs/input/VelocityControl.cpp b/libs/input/VelocityControl.cpp
index 5720099033..c835a081a5 100644
--- a/libs/input/VelocityControl.cpp
+++ b/libs/input/VelocityControl.cpp
@@ -37,7 +37,7 @@ VelocityControl::VelocityControl() {
reset();
}
-VelocityControlParameters& VelocityControl::getParameters() {
+const VelocityControlParameters& VelocityControl::getParameters() const{
return mParameters;
}