summaryrefslogtreecommitdiffstats
path: root/src/tools
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp b/src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp
index 97fc26f633..bf079995d7 100644
--- a/src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp
+++ b/src/tools/qdbusxml2cpp/qdbusxml2cpp.cpp
@@ -707,8 +707,8 @@ static void writeProxy(const QString &filename, const QDBusIntrospection::Interf
// add this class:
if (!name.isEmpty()) {
hs << QString(current.count() * 2, QLatin1Char(' '))
- << "typedef ::" << classNameForInterface(it->constData()->name, Proxy)
- << " " << name << ";" << Qt::endl;
+ << "using " << name << " = ::" << classNameForInterface(it->constData()->name, Proxy)
+ << ";" << Qt::endl;
}
if (it == interfaces.constEnd())