mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-25 05:48:59 -05:00
Code Cleanup (#2191)
* constexpr const -> constexpr * const char* -> std::string_view
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user