The Big Refactoring of 2019: configuration version should not be a global variable #656
This commit is contained in:
parent
0171e00231
commit
877ac257fe
|
@ -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() {
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue