summaryrefslogtreecommitdiff
path: root/src/qtwaylandscanner
diff options
context:
space:
mode:
Diffstat (limited to 'src/qtwaylandscanner')
-rw-r--r--src/qtwaylandscanner/qtwaylandscanner.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/qtwaylandscanner/qtwaylandscanner.cpp b/src/qtwaylandscanner/qtwaylandscanner.cpp
index 91a6d6ee..5914ea36 100644
--- a/src/qtwaylandscanner/qtwaylandscanner.cpp
+++ b/src/qtwaylandscanner/qtwaylandscanner.cpp
@@ -126,7 +126,7 @@ private:
bool Scanner::parseArguments(int argc, char **argv)
{
- QByteArray m_scannerName = argv[0];
+ m_scannerName = argv[0];
if (argc <= 2 || !parseOption(argv[1]))
return false;
@@ -1220,8 +1220,6 @@ bool Scanner::process()
for (int i = 0; i < e.arguments.size(); ++i) {
printf("\n");
const WaylandArgument &a = e.arguments.at(i);
- QByteArray cType = waylandToCType(a.type, a.interface);
- QByteArray qtType = waylandToQtType(a.type, a.interface, e.request);
const char *argumentName = a.name.constData();
if (a.type == "string")
printf(" QString::fromUtf8(%s)", argumentName);