chore: bump and support exiv2 version 0.28.0

0.27.x is still supported for now.
This commit is contained in:
2023-06-04 17:53:11 +08:00
parent edceac754f
commit c69483eff1
2 changed files with 15 additions and 7 deletions

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();
}
}
}