summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorNiels Weber <niels.weber@theqtcompany.com>2015-04-29 12:50:34 +0200
committerKarsten Heimrich <karsten.heimrich@theqtcompany.com>2015-04-29 10:53:22 +0000
commit88b5604fa32ef7b1829cb037a076e6d07d9e9eb0 (patch)
tree1801cf1b1cd3707ec9a261eb565d54673937a324 /tools
parenta1418fbffd4c786b5de8200e05a9ff26d8b90c3c (diff)
Fix some warnings in devtool
Change-Id: I9d12cd49ad4d82ec8f48798f087929fa3ee07fa8 Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/devtool/main.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/devtool/main.cpp b/tools/devtool/main.cpp
index c5c6531de..638242b29 100644
--- a/tools/devtool/main.cpp
+++ b/tools/devtool/main.cpp
@@ -54,11 +54,11 @@
struct Command
{
- char* command;
- char* description;
+ const char* command;
+ const char* description;
qint32 argC;
- char* arguments;
- char* argDescription;
+ const char* arguments;
+ const char* argDescription;
} Commands[] = {
{ "dump", "Dumps the binary content that belongs to an installer or maintenance tool into "
"target folder.", 2, "<binary> <targetfolder>", "The <binary> containing the data to "
@@ -156,7 +156,7 @@ int main(int argc, char *argv[])
bool found = false;
const QString command = arguments.takeFirst();
for (const auto &c : Commands) {
- if (found = (QLatin1String(c.command) == command)) {
+ if ((found = (QLatin1String(c.command) == command))) {
if (arguments.count() != c.argC)
return fail(QString::fromLatin1("%1: wrong argument count.").arg(command));
break;