summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2023-02-08 11:53:54 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2023-02-09 13:32:45 +0100
commit8c616b587c13f161ab3f6de7cb1b18e8d97d2300 (patch)
treecf6d41301322a02845632a2de607a98d16a27a74
parent8eb2c657af8df0492f9f8a3429bf1b04f0b39404 (diff)
downloadqtactiveqt-8c616b587c13f161ab3f6de7cb1b18e8d97d2300.tar.gz
Fix compilation of code within macro QT_CHECK_STATE
Pick-to: 6.5 Task-number: QTBUG-109394 Change-Id: I362a7bb24e23a30e49ffb80422573dca8562e87c Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
-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();
}