Commit 98201b85 authored by Volker Krause's avatar Volker Krause
Browse files

Fix the build without KHealthCertificate

parent 636fa0eb
......@@ -194,10 +194,14 @@ QByteArray HealthCertificateManager::certificateRawData(const CertData &certData
bool HealthCertificateManager::certLessThan(const CertData &lhs, const CertData &rhs)
{
#if HAVE_KHEALTHCERTIFICATE
const auto lhsDt = KHealthCertificate::relevantUntil(lhs.cert);
const auto rhsDt = KHealthCertificate::relevantUntil(rhs.cert);
if (lhsDt == rhsDt) {
return lhs.name < rhs.name;
}
return lhsDt > rhsDt;
#else
return lhs.name < rhs.name;
#endif
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment