aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRobert Tari <robert@tari.in>2022-01-13 12:51:32 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2022-02-01 07:58:22 +0100
commitd23a290dae52eec26bb4fd772168f38bd6e59f4e (patch)
tree3535261eaa585b4d19f8b22b8b07ba6d766d529b /tests
parent7f5119f81fdfa2cc97df91785dcce4798b0700cf (diff)
downloadqmenumodel-d23a290dae52eec26bb4fd772168f38bd6e59f4e.tar.gz
qmenumodel-d23a290dae52eec26bb4fd772168f38bd6e59f4e.tar.bz2
qmenumodel-d23a290dae52eec26bb4fd772168f38bd6e59f4e.zip
Fix all build warnings
Diffstat (limited to 'tests')
-rw-r--r--tests/client/actiongrouptest.cpp8
-rw-r--r--tests/script/dbusmenuscript.h4
2 files changed, 8 insertions, 4 deletions
diff --git a/tests/client/actiongrouptest.cpp b/tests/client/actiongrouptest.cpp
index 3ab329c..f2621eb 100644
--- a/tests/client/actiongrouptest.cpp
+++ b/tests/client/actiongrouptest.cpp
@@ -1,5 +1,6 @@
/*
* Copyright 2012 Canonical Ltd.
+ * Copyright 2022 Robert Tari
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
@@ -15,6 +16,7 @@
*
* Authors:
* Renato Araujo Oliveira Filho <renato@canonical.com>
+ * Robert Tari <robert@tari.in>
*/
#include "qdbusmenumodel.h"
@@ -138,7 +140,7 @@ private Q_SLOTS:
void testActionName()
{
- QStateAction *act;
+ QStateAction *act = nullptr;
getMenuAction(&act, 1);
QCOMPARE(act->property("name").toString(), QString("Menu1Act"));
}
@@ -148,7 +150,7 @@ private Q_SLOTS:
*/
void testStringActionActivation()
{
- QStateAction *act;
+ QStateAction *act = nullptr;
getMenuAction(&act, 1);
act->activate(QVariant("42"));
@@ -162,7 +164,7 @@ private Q_SLOTS:
void testStringActionActivationByVariantString()
{
- QStateAction *act;
+ QStateAction *act = nullptr;
getMenuAction(&act, 1);
act->activateByVariantString("\"53\"");
diff --git a/tests/script/dbusmenuscript.h b/tests/script/dbusmenuscript.h
index 03c5ad3..ff6119d 100644
--- a/tests/script/dbusmenuscript.h
+++ b/tests/script/dbusmenuscript.h
@@ -1,5 +1,6 @@
/*
* Copyright 2012 Canonical Ltd.
+ * Copyright 2022 Robert Tari
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
@@ -15,10 +16,11 @@
*
* Authors:
* Renato Araujo Oliveira Filho <renato@canonical.com>
+ * Robert Tari <robert@tari.in>
*/
#ifndef DBUSMENUSCRIPT_H
-#define DBUSMENUSCRITP_H
+#define DBUSMENUSCRIPT_H
#include <QObject>
#include <QDBusInterface>