Replaced all hardcoded error codes with ker... constants

This commit is contained in:
Dan Čermák
2018-02-16 00:26:50 +01:00
parent d897997b29
commit efe2ccdcb6
80 changed files with 747 additions and 747 deletions
+2 -2
View File
@@ -9,7 +9,7 @@
int main()
{
try {
throw Exiv2::Error(-1, "ARG1", "ARG2", "ARG3");
throw Exiv2::Error(Exiv2::kerGeneralError, "ARG1", "ARG2", "ARG3");
}
catch (const Exiv2::Error& e) {
std::cout << "Caught Error '" << e.what() << "'\n";
@@ -17,7 +17,7 @@ int main()
#ifdef EXV_UNICODE_PATH
try {
throw Exiv2::WError(-1, L"WARG1", L"WARG2", L"WARG3");
throw Exiv2::WError(Exiv2::kerGeneralError, L"WARG1", L"WARG2", L"WARG3");
}
catch (const Exiv2::WError& e) {
std::wstring wmsg = e.wwhat();