Gitlab@AEI Hannover will go down for maintenance on 2020-09-21 at 4:00 UTC. The service will be unavailable for up to 24 hours. If you have questions about this please contact atlas_admin@aei.mpg.de

[Manager] Fix Manager crash in APP_VERSION::clear()

In 219a5405 a circular dependency was introduced.
This commit fixes it in a similar way from the commit mentioned above for another structures.
Signed-off-by: default avatarVitalii Koshura <lestat.de.lionkur@gmail.com>
parent feca29d3
......@@ -222,6 +222,7 @@ struct APP_VERSION {
PROJECT* project;
APP_VERSION();
APP_VERSION(int) {}
int parse(XML_PARSER&);
int parse_coproc(XML_PARSER&);
......
......@@ -590,7 +590,7 @@ int APP_VERSION::parse(XML_PARSER& xp) {
}
void APP_VERSION::clear() {
static const APP_VERSION x;
static const APP_VERSION x(0);
*this = x;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment