summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIvan Komissarov <ABBAPOH@gmail.com>2021-10-15 12:27:23 +0200
committerIvan Komissarov <ABBAPOH@gmail.com>2021-10-15 21:33:35 +0000
commit0acaa8329b242a030ebc93762b78573ff30286cd (patch)
tree465400415a469f080c6b7482e911af2f8129d2b1 /src
parent966689ab499725cb7e7ab1157043b968a1a39e60 (diff)
downloadqbs-0acaa8329b242a030ebc93762b78573ff30286cd.tar.gz
Fix compiler warning
Change-Id: Ie890e307af9c28a1b904c5fde195871f0f924813 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/lib/pkgconfig/pcparser.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/pkgconfig/pcparser.cpp b/src/lib/pkgconfig/pcparser.cpp
index 6909f1be9..6f58896af 100644
--- a/src/lib/pkgconfig/pcparser.cpp
+++ b/src/lib/pkgconfig/pcparser.cpp
@@ -761,8 +761,7 @@ void PcParser::parseLine(PcPackage &pkg, std::string_view str)
// ignore this feature for now
const auto value = trimAndSubstitute(pkg, str);
- const auto [it, ok] = pkg.vars.insert({std::string(tag), value});
- if (!ok)
+ if (!pkg.vars.insert({std::string(tag), value}).second)
raizeDuplicateVariableException(pkg, tag);
}
}