std::nullopt instead?

main
Simon Quigley 4 days ago
parent fcc3e41e6b
commit 929bd6845f

@ -27,7 +27,7 @@ source_package_publishing_history::source_package_publishing_history()
self_link(""), self_link(""),
distro_series_link(""), distro_series_link(""),
lp(nullptr), lp(nullptr),
_distro_series(nullptr), _distro_series(std::nullopt),
distro_series([this]() -> std::optional<::distro_series> { distro_series([this]() -> std::optional<::distro_series> {
if (distro_series_link.empty()) return std::nullopt; if (distro_series_link.empty()) return std::nullopt;
if (_distro_series) return _distro_series; if (_distro_series) return _distro_series;

Loading…
Cancel
Save