clang -Weverything -Wno-gnu-anonymous-struct
This commit is contained in:
@ -6,8 +6,7 @@
|
||||
|
||||
ReturnValue_t FilesystemMock::feedFile(const std::string &filename, std::ifstream &file) {
|
||||
// not multibyte encoding safe!
|
||||
std::filesystem::path::string_type native_filename(filename.begin(),
|
||||
filename.end());
|
||||
std::filesystem::path::string_type native_filename(filename.begin(), filename.end());
|
||||
|
||||
if (not std::filesystem::exists(native_filename)) {
|
||||
return returnvalue::FAILED;
|
||||
@ -58,8 +57,7 @@ ReturnValue_t FilesystemMock::createFile(FilesystemParams params, const uint8_t
|
||||
return returnvalue::OK;
|
||||
}
|
||||
|
||||
ReturnValue_t FilesystemMock::removeFile(const char *path,
|
||||
FileSystemArgsIF *args) {
|
||||
ReturnValue_t FilesystemMock::removeFile(const char *path, FileSystemArgsIF *args) {
|
||||
std::string filename_c(path);
|
||||
std::filesystem::path::string_type filename(filename_c.cbegin(), filename_c.cend());
|
||||
|
||||
@ -88,8 +86,7 @@ ReturnValue_t FilesystemMock::removeDirectory(FilesystemParams params, bool dele
|
||||
return returnvalue::OK;
|
||||
}
|
||||
|
||||
ReturnValue_t FilesystemMock::rename(const char *oldPath,
|
||||
const char *newPath,
|
||||
ReturnValue_t FilesystemMock::rename(const char *oldPath, const char *newPath,
|
||||
FileSystemArgsIF *args) {
|
||||
renameQueue.push(RenameInfo(oldPath, newPath));
|
||||
return returnvalue::OK;
|
||||
|
Reference in New Issue
Block a user