summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergio Martins <sergio.martins@kdab.com>2018-11-30 10:49:51 +0000
committerSérgio Martins <sergio.martins@kdab.com>2018-11-30 11:37:53 +0000
commit4fa1ed2dfe7ae42b940d6d28e4c1066853e7768a (patch)
tree86c47af6c2d4e69de82352d001739544fc65001a
parentb81cf22561600e96113270114a8d5fab750ad64f (diff)
Fix unused variables, in preparation for adding warning_clean
The QByteArray one seems like an actual bug. Change-Id: I11de9c7a10cdd3e70f9f6af18bcce3bd3bf54320 Reviewed-by: Johan Helsing <johan.helsing@qt.io>
-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 f2e2d24d..57f3f1a9 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;
@@ -1200,8 +1200,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);