aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2019-01-11 14:37:49 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2019-01-15 12:50:59 +0000
commitaef6a443a241756e9dfaff192b69d51eaa235ef6 (patch)
tree145b2790933bcdedc85d6bf5767147cd32bdbbb6 /sources/shiboken2
parentcf11bcd7957eaa8f1665c5237abed9d38f53d241 (diff)
shiboken: Fix security warning in formatting error message
cppgenerator.cpp:2698:107: warning: format not a string literal and no format arguments [-Wformat-security] Change-Id: I41d976749023bda142b680930f2d54d00687eb47 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'sources/shiboken2')
-rw-r--r--sources/shiboken2/generator/shiboken2/cppgenerator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/sources/shiboken2/generator/shiboken2/cppgenerator.cpp b/sources/shiboken2/generator/shiboken2/cppgenerator.cpp
index 3d87fcff0..ea0f43170 100644
--- a/sources/shiboken2/generator/shiboken2/cppgenerator.cpp
+++ b/sources/shiboken2/generator/shiboken2/cppgenerator.cpp
@@ -2704,8 +2704,8 @@ void CppGenerator::writeSingleFunctionCall(QTextStream &s,
} else if (!injectCodeCallsFunc && !func->isUserAdded() && !hasConversionRule) {
// When an argument is removed from a method signature and no other means of calling
// the method are provided (as with code injection) the generator must abort.
- qFatal(qPrintable(QString::fromLatin1("No way to call '%1::%2' with the modifications described in the type system.")
- .arg(func->ownerClass()->name(), func->signature())));
+ qFatal("No way to call '%s::%s' with the modifications described in the type system.",
+ qPrintable(func->ownerClass()->name()), qPrintable(func->signature()));
}
removedArgs++;
continue;