Code Cleanup (#2191)

* constexpr const -> constexpr
* const char* -> std::string_view
This commit is contained in:
Alexander Bock
2022-07-25 15:57:45 +02:00
committed by GitHub
parent ea1f4bbf40
commit 9cc4c595a8
267 changed files with 1425 additions and 1565 deletions
+1 -3
View File
@@ -35,8 +35,6 @@
#include <variant>
namespace {
constexpr const char* TempSuffix = ".tmp";
struct [[codegen::Dictionary(UrlSynchronization)]] Parameters {
// The URL or urls from where the files are downloaded. If multiple URLs are
// provided, all files will be downloaded to the same directory and the filename
@@ -154,7 +152,7 @@ void UrlSynchronization::start() {
name.erase(std::remove(name.begin(), name.end(), '?'), name.end());
_filename = name;
}
std::filesystem::path destination = directory() / (_filename + TempSuffix);
std::filesystem::path destination = directory() / (_filename + ".tmp");
auto download = std::make_unique<HttpFileDownload>(
url,