diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-07-10 02:02:19 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-07-10 02:02:19 +0200 |
| commit | 5b0e331380c83ec9835e8aa42fd342b2f0ad275d (patch) | |
| tree | 13c27f0b3420f5c3a268a5a22a9172675fdc370c /src/lib/curl_uploader.cc | |
| parent | 5d838bc863a7569e68546026c109607fd5a94362 (diff) | |
Use dcp::compose rather than our own.compose
Diffstat (limited to 'src/lib/curl_uploader.cc')
| -rw-r--r-- | src/lib/curl_uploader.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/curl_uploader.cc b/src/lib/curl_uploader.cc index 60835bea7..0b08227f0 100644 --- a/src/lib/curl_uploader.cc +++ b/src/lib/curl_uploader.cc @@ -23,7 +23,7 @@ #include "exceptions.h" #include "config.h" #include "cross.h" -#include "compose.hpp" +#include <dcp/compose.h> #include <iostream> #include "i18n.h" @@ -82,19 +82,19 @@ CurlUploader::upload_file (boost::filesystem::path from, boost::filesystem::path curl_easy_setopt ( _curl, CURLOPT_URL, /* Use generic_string so that we get forward-slashes in the path, even on Windows */ - String::compose ("ftp://%1/%2/%3", Config::instance()->tms_ip(), Config::instance()->tms_path(), to.generic_string ()).c_str () + dcp::compose ("ftp://%1/%2/%3", Config::instance()->tms_ip(), Config::instance()->tms_path(), to.generic_string ()).c_str () ); _file = fopen_boost (from, "rb"); if (!_file) { - throw NetworkError (String::compose (_("Could not open %1 to send"), from)); + throw NetworkError (dcp::compose (_("Could not open %1 to send"), from)); } _transferred = &transferred; _total_size = total_size; auto const r = curl_easy_perform (_curl); if (r != CURLE_OK) { - throw NetworkError (String::compose (_("Could not write to remote file (%1)"), curl_easy_strerror (r))); + throw NetworkError (dcp::compose (_("Could not write to remote file (%1)"), curl_easy_strerror (r))); } fclose (_file); |
