fix VS2019 (Version 16.5.1) builds

This commit is contained in:
Thijs Wenker 2020-04-01 12:29:53 +02:00
parent e3d4856415
commit aa5413fd71

View file

@ -734,7 +734,7 @@ BatchPointer Deserializer::readBatch(const json& node) {
std::string batchName;
if (node.count(keys::name)) {
batchName = node[keys::name];
batchName = node.value(keys::name, "");
}
BatchPointer result = std::make_shared<Batch>(batchName);
auto& batch = *result;