summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2023-02-08 11:53:54 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-02-09 12:45:29 +0000
commit6735208e2250a22bda5207dd9159a126d42595f2 (patch)
tree08f312d4852766dfec95213301eb57331f0de219
parent803539581431b46d1a6812e785eca8829ee7b1ad (diff)
downloadqtactiveqt-6735208e2250a22bda5207dd9159a126d42595f2.tar.gz
Fix compilation of code within macro QT_CHECK_STATE
Task-number: QTBUG-109394 Change-Id: I362a7bb24e23a30e49ffb80422573dca8562e87c Reviewed-by: Oliver Wolff <oliver.wolff@qt.io> (cherry picked from commit 8c616b587c13f161ab3f6de7cb1b18e8d97d2300) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/activeqt/container/qaxscript.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/activeqt/container/qaxscript.cpp b/src/activeqt/container/qaxscript.cpp
index 161f25e..ee697ba 100644
--- a/src/activeqt/container/qaxscript.cpp
+++ b/src/activeqt/container/qaxscript.cpp
@@ -1116,7 +1116,8 @@ QVariant QAxScriptManager::call(const QString &function, const QVariant &var1,
if (!s) {
#ifdef QT_CHECK_STATE
qWarning("QAxScriptManager::call: No script provides function %s, or this function\n"
- "\tis provided through an engine that does not support introspection", function.latin1());
+ "\tis provided through an engine that does not support introspection",
+ qPrintable(function));
#endif
return QVariant();
}
@@ -1137,7 +1138,8 @@ QVariant QAxScriptManager::call(const QString &function, QList<QVariant> &argume
if (!s) {
#ifdef QT_CHECK_STATE
qWarning("QAxScriptManager::call: No script provides function %s, or this function\n"
- "\tis provided through an engine that does not support introspection", function.latin1());
+ "\tis provided through an engine that does not support introspection",
+ qPrintable(function));
#endif
return QVariant();
}