From 2229b0a494928b13df4fc6a06015cf8a13ad850d Mon Sep 17 00:00:00 2001 From: Henning Stahlke Date: Thu, 20 Apr 2017 22:42:15 +0200 Subject: [PATCH] YASim: mark methods of Version 'const' --- src/FDM/YASim/Version.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/FDM/YASim/Version.hpp b/src/FDM/YASim/Version.hpp index 0c56f06a6..10e7e3e01 100644 --- a/src/FDM/YASim/Version.hpp +++ b/src/FDM/YASim/Version.hpp @@ -16,20 +16,20 @@ public: } YASIM_VERSION; void setVersion( const char * version ); - int getVersion() { return _version; } - bool isVersion( YASIM_VERSION version ); - bool isVersionOrNewer( YASIM_VERSION version ); + int getVersion() const { return _version; } + bool isVersion( YASIM_VERSION version ) const; + bool isVersionOrNewer( YASIM_VERSION version ) const; private: YASIM_VERSION _version; }; -inline bool Version::isVersion( YASIM_VERSION version ) +inline bool Version::isVersion( YASIM_VERSION version ) const { return _version == version; } -inline bool Version::isVersionOrNewer( YASIM_VERSION version ) +inline bool Version::isVersionOrNewer( YASIM_VERSION version ) const { return _version >= version; }