Fixed std::optional bad cast

This commit is contained in:
Shikhar Vashistha
2021-10-22 19:25:45 +02:00
committed by Kamil Śliwak
parent 64c2d4d33b
commit 23f785ef5b
+1 -1
View File
@@ -80,5 +80,5 @@ static std::optional<Severity> severityFromString(std::string _severity)
_severity[0] = toupper(_severity[0]);
return std::make_optional<Severity>(_severity).has_value() ? std::optional<Severity>(_severity).value() : std::nullopt;
return std::make_optional<std::string>(_severity).has_value() ? std::optional<std::string>(_severity).value() : std::nullopt;
}