From d518e55a67521f8ba151759aec10d8aceabcd2e3 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Fri, 2 Aug 2024 15:34:01 -0500 Subject: [PATCH] updated build system --- repertory/librepertory/src/app_config.cpp | 1 - repertory/repertory_test/src/encrypting_reader_test.cpp | 2 -- support/3rd_party/src/utils/file.cpp | 6 +++--- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/repertory/librepertory/src/app_config.cpp b/repertory/librepertory/src/app_config.cpp index 88ff5e51..9fc65531 100644 --- a/repertory/librepertory/src/app_config.cpp +++ b/repertory/librepertory/src/app_config.cpp @@ -706,7 +706,6 @@ void app_config::save() { } config_changed_ = false; json data = get_json(); - std::cout << "saving: " << data.dump() << std::endl; auto success = false; for (auto i = 0U; not success && (i < retry_save_count); i++) { success = utils::file::write_json_file(file_path, data); diff --git a/repertory/repertory_test/src/encrypting_reader_test.cpp b/repertory/repertory_test/src/encrypting_reader_test.cpp index 3e1e0dde..31f4c27e 100644 --- a/repertory/repertory_test/src/encrypting_reader_test.cpp +++ b/repertory/repertory_test/src/encrypting_reader_test.cpp @@ -44,11 +44,9 @@ TEST(encrypting_reader, get_encrypted_file_name) { "test.dat", source_file_name, stop_requested, token, std::nullopt); auto file_name = reader.get_encrypted_file_name(); - std::cout << file_name << std::endl; EXPECT_EQ(api_error::success, utils::encryption::decrypt_file_name(token, file_name)); - std::cout << file_name << std::endl; EXPECT_STREQ("test.dat", file_name.c_str()); source_file->close(); diff --git a/support/3rd_party/src/utils/file.cpp b/support/3rd_party/src/utils/file.cpp index 1a20d51e..44090375 100644 --- a/support/3rd_party/src/utils/file.cpp +++ b/support/3rd_party/src/utils/file.cpp @@ -76,13 +76,13 @@ auto file::move_to(std::filesystem::path new_path) -> bool { if (not error_) { path_ = new_path; if (reopen) { - *this = std::move(open_file(path_)); + *this = open_file(path_); } return true; } if (reopen) { - *this = std::move(open_file(path_)); + *this = open_file(path_)); } return false; } @@ -139,7 +139,7 @@ auto file::truncate(std::size_t size) -> bool { std::filesystem::resize_file(path_, size, error_); if (reopen) { - *this = std::move(open_file(path_)); + *this = open_file(path_); } return not error_;