From 8f14fdc7325cb9635e3d92873baaa58f430fca01 Mon Sep 17 00:00:00 2001 From: saturneric Date: Fri, 18 Apr 2025 17:54:54 +0200 Subject: feat: add more info check --- src/core/utils/CommonUtils.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/core/utils/CommonUtils.cpp') diff --git a/src/core/utils/CommonUtils.cpp b/src/core/utils/CommonUtils.cpp index ce36c71e..eec5deef 100644 --- a/src/core/utils/CommonUtils.cpp +++ b/src/core/utils/CommonUtils.cpp @@ -74,6 +74,11 @@ auto GFCompareSoftwareVersion(const QString& a, const QString& b) -> int { return 0; } +auto GFSoftwareVersionGreaterThan(const QString& a, const QString& b) -> bool { + if (a.isEmpty()) return false; + return GFCompareSoftwareVersion(a, b) > 0; +} + auto GFStrDup(const QString& s) -> char* { if (s.isEmpty()) return nullptr; -- cgit v1.2.3