From a95e00d65f5e47e9b161a5eec7baebe6f0861cf7 Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Fri, 7 Jun 2019 00:50:04 -0700 Subject: [PATCH] another const --- firmware/util/containers/local_version_holder.cpp | 2 +- firmware/util/containers/local_version_holder.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/util/containers/local_version_holder.cpp b/firmware/util/containers/local_version_holder.cpp index ce4e82a743..79c89a7aee 100644 --- a/firmware/util/containers/local_version_holder.cpp +++ b/firmware/util/containers/local_version_holder.cpp @@ -7,7 +7,7 @@ #include "local_version_holder.h" -int LocalVersionHolder::getVersion() { +int LocalVersionHolder::getVersion() const { return localVersion; } diff --git a/firmware/util/containers/local_version_holder.h b/firmware/util/containers/local_version_holder.h index ef40561f12..38e351617a 100644 --- a/firmware/util/containers/local_version_holder.h +++ b/firmware/util/containers/local_version_holder.h @@ -22,7 +22,7 @@ public: * @return true if 'globalVersion' has changed since last time we've invoked this method */ bool isOld(int globalVersion); - int getVersion(); + int getVersion() const; private: /**