From 1dddafd4b3ddaf53beaaf3ff5604cd1c073cd752 Mon Sep 17 00:00:00 2001 From: Nikolaj Schlej Date: Fri, 8 Apr 2016 13:48:13 +0200 Subject: [PATCH] Changes to please GCC MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - forgot that C++17 extensions aren’t everywhere yet --- common/ffsparser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/ffsparser.cpp b/common/ffsparser.cpp index 2c7bb4e..6ea8375 100644 --- a/common/ffsparser.cpp +++ b/common/ffsparser.cpp @@ -4173,7 +4173,7 @@ STATUS FfsParser::parseEvsaStoreBody(const QModelIndex & index) QObject::tr("%1h, invalid, should be %2h").hexarg2(guidHeader->Header.Checksum, 2).hexarg2(calculated, 2)) .hexarg2(guidHeader->GuidId, 4); subtype = Subtypes::GuidEvsaEntry; - guidMap.insert_or_assign(guidHeader->GuidId, guidHeader->Guid); + guidMap.insert(std::pair(guidHeader->GuidId, guidHeader->Guid)); } // Name entry else if (entryHeader->Type == NVRAM_EVSA_ENTRY_TYPE_NAME1 || @@ -4192,7 +4192,7 @@ STATUS FfsParser::parseEvsaStoreBody(const QModelIndex & index) QObject::tr("%1h, invalid, should be %2h").hexarg2(nameHeader->Header.Checksum, 2).hexarg2(calculated, 2)) .hexarg2(nameHeader->VarId, 4); subtype = Subtypes::NameEvsaEntry; - nameMap.insert_or_assign(nameHeader->VarId, name); + nameMap.insert(std::pair(nameHeader->VarId, name)); } // Data entry else if (entryHeader->Type == NVRAM_EVSA_ENTRY_TYPE_DATA1 ||