Skip to content

Commit

Permalink
[snapshots] Fix attempts to move from const
Browse files Browse the repository at this point in the history
  • Loading branch information
ricab committed Oct 23, 2023
1 parent fed9e12 commit c8e11a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platform/backends/shared/base_snapshot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,8 @@ auto mp::BaseSnapshot::erase_helper()
throw std::runtime_error{"Could not create temporary directory"};

const auto snapshot_filename = derive_snapshot_filename();
const auto snapshot_filepath = storage_dir.filePath(snapshot_filename);
const auto deleting_filepath = tmp_dir->filePath(snapshot_filename);
auto snapshot_filepath = storage_dir.filePath(snapshot_filename);
auto deleting_filepath = tmp_dir->filePath(snapshot_filename);

Check warning on line 289 in src/platform/backends/shared/base_snapshot.cpp

View check run for this annotation

Codecov / codecov/patch

src/platform/backends/shared/base_snapshot.cpp#L288-L289

Added lines #L288 - L289 were not covered by tests

QFile snapshot_file{snapshot_filepath};
if (!MP_FILEOPS.rename(snapshot_file, deleting_filepath))
Expand Down

0 comments on commit c8e11a5

Please sign in to comment.