From 00431c0979924f360daac48672e021d77cae5720 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Sat, 4 Mar 2023 11:51:27 +0000 Subject: [PATCH] fix qt 5.12 compatibility --- libs/qsynedit/qsynedit/syntaxer/asm.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libs/qsynedit/qsynedit/syntaxer/asm.cpp b/libs/qsynedit/qsynedit/syntaxer/asm.cpp index 28b1a121..1a0d2da0 100644 --- a/libs/qsynedit/qsynedit/syntaxer/asm.cpp +++ b/libs/qsynedit/qsynedit/syntaxer/asm.cpp @@ -1564,7 +1564,14 @@ void ASMSyntaxer::initData() Instructions.insert("vxorps",QObject::tr("Bitwise Logical XOR for Single-Precision Floating-Point Values.")); Instructions.insert("vpclmulqdq",QObject::tr("Carry-Less Multiplication Quadword, Requires PCLMULQDQ CPUID-flag.")); #endif +#if QT_VERSION >= QT_VERSION_CHECK(5,15,0) InstructionNames=QSet(Instructions.keyBegin(),Instructions.keyEnd()); +#else + InstructionNames.clear(); + foreach(const QString& s,Instructions.keys()) { + InstructionNames.insert(s); + } +#endif } }