Home GnuPG
Diffusion GPGME 2f53a2f4be86

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
rM25e2d717f446: tests: Fix gcc incompatibility
Branches
Unknown
Tags
Unknown