Convert Exiv2::ErrorCode into an enum class

This commit is contained in:
Luis Díaz Más
2022-03-08 19:35:16 +01:00
committed by Luis Diaz
parent 5d08bb9bec
commit 96f7f2e4c5
80 changed files with 955 additions and 949 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ try {
FileIo file(path);
// Open the file in read mode
if (file.open("rb") != 0) {
throw Error(kerFileOpenFailed, path, "rb", strError());
throw Error(ErrorCode::kerFileOpenFailed, path, "rb", strError());
}
// Map it to memory
const Exiv2::byte* pData = file.mmap();