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 3afc72a458
commit 8a45420475
2 changed files with 4 additions and 5 deletions

View File

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

View File

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