summaryrefslogtreecommitdiff
path: root/backend/slackpkg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backend/slackpkg.cpp')
-rw-r--r--backend/slackpkg.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/slackpkg.cpp b/backend/slackpkg.cpp
index 2f418a8..c240088 100644
--- a/backend/slackpkg.cpp
+++ b/backend/slackpkg.cpp
@@ -85,7 +85,7 @@ public:
source_dest.first = this->mirror + current_priority + "/PACKAGES.TXT";
source_dest.second = tmpl / this->name / "PACKAGES.TXT";
- if (get_file(&curl, source_dest.first.c_str(), nullptr) == CURLE_OK)
+ if (get_file(&curl, source_dest.first.c_str(), std::nullopt) == CURLE_OK)
{
file_list.emplace_front(std::move(source_dest));
}
@@ -98,7 +98,7 @@ public:
source_dest.first = this->mirror + current_priority + "/MANIFEST.bz2";
source_dest.second = tmpl / this->name / (current_priority + "-MANIFEST.bz2");
- if (get_file(&curl, source_dest.first.c_str(), nullptr) == CURLE_OK)
+ if (get_file(&curl, source_dest.first.c_str(), std::nullopt) == CURLE_OK)
{
file_list.emplace_front(std::move(source_dest));
}