The Big Refactoring of 2019: configuration version should not be a global variable #656

This commit is contained in:
rusefi 2019-04-15 21:02:25 -04:00
parent 0171e00231
commit 877ac257fe
2 changed files with 4 additions and 5 deletions

View File

@ -8,10 +8,6 @@
#include "local_version_holder.h" #include "local_version_holder.h"
LocalVersionHolder::LocalVersionHolder() { LocalVersionHolder::LocalVersionHolder() {
/**
* we want local version to be 'old' on instantiation
*/
localVersion = -1;
} }
int LocalVersionHolder::getVersion() { int LocalVersionHolder::getVersion() {

View File

@ -27,7 +27,10 @@ public:
int getVersion(); int getVersion();
private: private:
int localVersion; /**
* we want local version to be 'old' on instantiation
*/
int localVersion = -1;
}; };