diff --git a/src/slic3r/Utils/Http.cpp b/src/slic3r/Utils/Http.cpp index 11a36dfabca..c87858ea57c 100644 --- a/src/slic3r/Utils/Http.cpp +++ b/src/slic3r/Utils/Http.cpp @@ -314,7 +314,7 @@ void Http::priv::form_add_file(const char *name, const fs::path &path, const cha filename = path.string().c_str(); } - form_files.emplace_back(form_file{{path, std::ios::in | std::ios::binary}, offset, length}); + form_files.emplace_back({path, std::ios::in | std::ios::binary}, offset, length); auto &f = form_files.back(); size_t size = length; if (length == 0) { @@ -381,7 +381,7 @@ void Http::priv::set_put_body(const fs::path &path) boost::system::error_code ec; boost::uintmax_t filesize = file_size(path, ec); if (!ec) { - putFile = std::make_unique(form_file{{path, std::ios_base::binary | std::ios_base::in}, 0, 0}); + putFile = std::make_unique({path, std::ios_base::binary | std::ios_base::in}, 0, 0); ::curl_easy_setopt(curl, CURLOPT_UPLOAD, 1L); ::curl_easy_setopt(curl, CURLOPT_READDATA, (void *) (putFile.get())); ::curl_easy_setopt(curl, CURLOPT_INFILESIZE, filesize);