diff options
| author | 2021-06-22 17:21:59 -0700 | |
|---|---|---|
| committer | 2021-06-22 17:21:59 -0700 | |
| commit | 0308a2679ed87aa9cb07e2bde19e165dc454c322 (patch) | |
| tree | a1d29aacabab533673bff8043ec11864d68ed022 /src/common/logging/backend.cpp | |
| parent | Merge pull request #6472 from Morph1984/spl (diff) | |
| parent | common: fs: Add a description of a regular file in IsFile (diff) | |
| download | yuzu-0308a2679ed87aa9cb07e2bde19e165dc454c322.tar.gz yuzu-0308a2679ed87aa9cb07e2bde19e165dc454c322.tar.xz yuzu-0308a2679ed87aa9cb07e2bde19e165dc454c322.zip | |
Merge pull request #6493 from Morph1984/fs-nodiscard
common: fs: Miscellaneous changes
Diffstat (limited to 'src/common/logging/backend.cpp')
| -rw-r--r-- | src/common/logging/backend.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/logging/backend.cpp b/src/common/logging/backend.cpp index d5cff400f..47ce06478 100644 --- a/src/common/logging/backend.cpp +++ b/src/common/logging/backend.cpp | |||
| @@ -159,7 +159,7 @@ FileBackend::FileBackend(const std::filesystem::path& filename) { | |||
| 159 | 159 | ||
| 160 | // Existence checks are done within the functions themselves. | 160 | // Existence checks are done within the functions themselves. |
| 161 | // We don't particularly care if these succeed or not. | 161 | // We don't particularly care if these succeed or not. |
| 162 | void(FS::RemoveFile(old_filename)); | 162 | FS::RemoveFile(old_filename); |
| 163 | void(FS::RenameFile(filename, old_filename)); | 163 | void(FS::RenameFile(filename, old_filename)); |
| 164 | 164 | ||
| 165 | file = | 165 | file = |
| @@ -186,7 +186,7 @@ void FileBackend::Write(const Entry& entry) { | |||
| 186 | 186 | ||
| 187 | bytes_written += file->WriteString(FormatLogMessage(entry).append(1, '\n')); | 187 | bytes_written += file->WriteString(FormatLogMessage(entry).append(1, '\n')); |
| 188 | if (entry.log_level >= Level::Error) { | 188 | if (entry.log_level >= Level::Error) { |
| 189 | void(file->Flush()); | 189 | file->Flush(); |
| 190 | } | 190 | } |
| 191 | } | 191 | } |
| 192 | 192 | ||