diff options
author | Marc Mutz <marc.mutz@qt.io> | 2022-12-21 10:54:10 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2023-01-03 08:05:37 +0000 |
commit | 8cc7f1d1235a49b71fd51b296348b19b38eedae9 (patch) | |
tree | 42968a51c32753806942eecf48d76e143626e05b | |
parent | b495d4216e7cc8df183c2e21a137db45b39fbe14 (diff) |
Partially update moc copy from qtbase
This applies qtbase/b8c2a0c18a0676595946b5543ff88492a5fc7876 to the
copy of the moc code used in qscxmlc. The moc copy here is severely
out of sync with the qtbase version, so just running update_moc.sh
produces a lot of conflicts, which is why I only applied this one
patch.
Created QTBUG-109556 to keep track of the rest.
Fixes: QTBUG-109235
Change-Id: I9e033453928110ac2aab1ecd6cde824c6abe0a97
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
(cherry picked from commit 6e69b40526e4c69b9b46e06a104c5b8a27c61544)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | tools/qscxmlc/moc.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/qscxmlc/moc.h b/tools/qscxmlc/moc.h index de3778f..2381a4f 100644 --- a/tools/qscxmlc/moc.h +++ b/tools/qscxmlc/moc.h @@ -5,6 +5,7 @@ #define MOC_H // -- QtScxml +#include <QtCore/private/qtools_p.h> #include <QtCore/qmap.h> #include <QtCore/qpair.h> #include <QtCore/qjsondocument.h> @@ -108,7 +109,7 @@ struct PropertyDef { bool stdCppSet() const { QByteArray s("set"); - s += toupper(name[0]); + s += QtMiscUtils::toAsciiUpper(name[0]); s += name.mid(1); return (s == write); } |