The Big Refactoring of 2019: configuration version should not be a global variable #656
This commit is contained in:
parent
3afc72a458
commit
8a45420475
|
@ -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() {
|
||||
|
|
|
@ -27,7 +27,10 @@ public:
|
|||
int getVersion();
|
||||
|
||||
private:
|
||||
int localVersion;
|
||||
/**
|
||||
* we want local version to be 'old' on instantiation
|
||||
*/
|
||||
int localVersion = -1;
|
||||
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue