From 0ed92a63ef75d3c7515075e33373b70dd3ac8669 Mon Sep 17 00:00:00 2001 From: EntireTwix Date: Thu, 1 Apr 2021 21:53:36 -0700 Subject: [PATCH] made some member funcs const --- include/user.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/user.hpp b/include/user.hpp index cb7e869..b8cba40 100644 --- a/include/user.hpp +++ b/include/user.hpp @@ -59,7 +59,7 @@ public: * * @return the balance */ - uint_fast64_t GetBal() + uint_fast64_t GetBal() const { return balance; } @@ -70,7 +70,7 @@ public: * @param attempt the password * @return wether the passwords match */ - bool VerifyPassword(const std::string &attempt) //for connected services + bool VerifyPassword(const std::string &attempt) const { return (password == attempt); }