summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIvan Komissarov <abbapoh@gmail.com>2021-10-31 17:39:45 +0300
committerIvan Komissarov <ABBAPOH@gmail.com>2021-11-01 10:07:43 +0000
commit9f479174b9c6353aac458f58cc3893203e9c0027 (patch)
treef9477d5b6679c707424d9823ae9b17b8e443a84d /tests
parent38f233502e32112e15179420da86d6e6afb79b24 (diff)
downloadqbs-9f479174b9c6353aac458f58cc3893203e9c0027.tar.gz
pkgconfig: Rename vars to variables
Change-Id: Iffc41104f002684525f5a0efe6c44cd326299678 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/pkgconfig/tst_pkgconfig.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/pkgconfig/tst_pkgconfig.cpp b/tests/auto/pkgconfig/tst_pkgconfig.cpp
index 542984378..1e2ef9e2a 100644
--- a/tests/auto/pkgconfig/tst_pkgconfig.cpp
+++ b/tests/auto/pkgconfig/tst_pkgconfig.cpp
@@ -90,12 +90,12 @@ void TestPkgConfig::pkgConfig()
QCOMPARE(QString::fromStdString(package.description), json.value("Description").toString());
QCOMPARE(QString::fromStdString(package.version), json.value("Version").toString());
- auto vars = json["Vars"].toMap();
- vars["pcfiledir"] = QFileInfo(m_workingDataDir).absoluteFilePath();
+ auto variables = json["Vars"].toMap();
+ variables["pcfiledir"] = QFileInfo(m_workingDataDir).absoluteFilePath();
- for (const auto &[key, value]: package.vars) {
+ for (const auto &[key, value]: package.variables) {
QCOMPARE(QString::fromStdString(value),
- vars.value(QString::fromStdString(key)).toString());
+ variables.value(QString::fromStdString(key)).toString());
}
const auto jsonLibs = json.value("Libs").toJsonArray().toVariantList();