chore: bump and support exiv2 version 0.28.0

0.27.x is still supported for now.
This commit is contained in:
blumia committed 2023-06-04 21:58:16 +08:00
1 parent edceac754f
commit c69483eff1
2 files changed
+15 -7

No files matched your search

+6 -2
View File
@@ -47,8 +47,12 @@ void Exiv2Wrapper::cacheSection(Collection collection)
m_metadataValue.insert(key, value);
m_metadataLabel.insert(key, label);
qDebug() << key << label << value;
} catch (Exiv2::BasicError<char> & err) {
qWarning() << "Error loading key" << key << ":" << err.code() << err.what();
#if EXIV2_TEST_VERSION(0, 28, 0)
} catch (Exiv2::Error & err) {
#else // 0.27.x
} catch (Exiv2::AnyError & err) {
#endif // EXIV2_TEST_VERSION(0, 28, 0)
qWarning() << "Error loading key" << key << ":" << err.what();
}
}
}