From 929bd6845fb755b44fb2c05e9d6f932b4b536bd4 Mon Sep 17 00:00:00 2001 From: Simon Quigley Date: Wed, 18 Dec 2024 19:27:46 -0600 Subject: [PATCH] std::nullopt instead? --- src/source_package_publishing_history.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/source_package_publishing_history.cpp b/src/source_package_publishing_history.cpp index aa53827..d666679 100644 --- a/src/source_package_publishing_history.cpp +++ b/src/source_package_publishing_history.cpp @@ -27,7 +27,7 @@ source_package_publishing_history::source_package_publishing_history() self_link(""), distro_series_link(""), lp(nullptr), - _distro_series(nullptr), + _distro_series(std::nullopt), distro_series([this]() -> std::optional<::distro_series> { if (distro_series_link.empty()) return std::nullopt; if (_distro_series) return _distro_series;