summaryrefslogtreecommitdiffstats
path: root/src/linguist/shared/qmakebuiltins.cpp
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@qt.io>2016-11-09 13:11:31 +0100
committerOswald Buddenhagen <oswald.buddenhagen@qt.io>2018-09-14 13:48:41 +0000
commitf148b771ee2fbab6e3d5da1058d657e5e0779fc0 (patch)
treeccaf2c6ec2d37a273bf026e8cc35c12324f9c45c /src/linguist/shared/qmakebuiltins.cpp
parentc053613e4ba987cc1e3eecdebad651d14f124d0f (diff)
fix $$section()'s bad argument count error message
the autotest was also broken, because it was created by pasting the bogus message into the result ... Change-Id: I02b8663b96c7d96cdb3c19639e2213e49fd2bcec Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> (cherry picked from qtbase/8db556d29919fd0c0ddb23b743cb5e6c218b1ae2) Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/linguist/shared/qmakebuiltins.cpp')
-rw-r--r--src/linguist/shared/qmakebuiltins.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/linguist/shared/qmakebuiltins.cpp b/src/linguist/shared/qmakebuiltins.cpp
index 107c5446a..78ad02913 100644
--- a/src/linguist/shared/qmakebuiltins.cpp
+++ b/src/linguist/shared/qmakebuiltins.cpp
@@ -549,8 +549,7 @@ ProStringList QMakeEvaluator::evaluateBuiltinExpand(
int end = -1;
if (func_t == E_SECTION) {
if (args.count() != 3 && args.count() != 4) {
- evalError(fL1S("%1(var) section(var, sep, begin, end) requires"
- " three or four arguments.").arg(func.toQString(m_tmp1)));
+ evalError(fL1S("section(var, sep, begin, end) requires three or four arguments."));
} else {
var = args[0];
sep = args.at(1).toQString();