General code spring cleaning (#3525)

This commit is contained in:
Alexander Bock
2025-02-22 15:28:14 +01:00
committed by GitHub
parent de57307537
commit 5152a7a6e0
156 changed files with 1088 additions and 1390 deletions

View File

@@ -165,7 +165,7 @@ void HttpSynchronization::createSyncFile(bool isFullySynchronized) const {
std::filesystem::create_directories(dir);
dir.replace_extension("ossync");
std::ofstream syncFile(dir, std::ofstream::out);
std::ofstream syncFile = std::ofstream(dir, std::ofstream::out);
syncFile << std::format(
"{}\n{}\n",
@@ -193,7 +193,7 @@ bool HttpSynchronization::isEachFileDownloaded() {
}
// Read contents of file
std::ifstream file(path);
std::ifstream file = std::ifstream(path);
std::string line;
file >> line;