Home GnuPG

cpp, qt: Fix version info comparison

Description

cpp, qt: Fix version info comparison

* lang/cpp/src/engineinfo.h
(EngineInfo::Version::operator>(const Version &)): Fix logic.
(EngineInfo::Version::operator>(const char *)): Use Version-overload of
operator>.
* lang/qt/tests/t-various.cpp: Add test.

This fixes a logic error that 2.0.0 > 2.0.0 would return true.

Details

Provenance
ikloeckerAuthored on Oct 15 2020, 4:45 PM
Parents
rGPGMEPP218ee7927010: cpp: Update key with --with-secret instead of updating it twice
Branches
Unknown
Tags
Unknown