aboutsummaryrefslogtreecommitdiff
path: root/tests/client
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2022-02-01 08:00:04 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2022-02-01 08:00:04 +0100
commit45da05715cd75cb17e13516d534c4a48ec023582 (patch)
treead3dd0c1d6bc31e037fc97ef3fc9f925841c4c34 /tests/client
parent7f5119f81fdfa2cc97df91785dcce4798b0700cf (diff)
parentf441fabc655a021e161e59f26c302b9a94b5c3fc (diff)
downloadqmenumodel-45da05715cd75cb17e13516d534c4a48ec023582.tar.gz
qmenumodel-45da05715cd75cb17e13516d534c4a48ec023582.tar.bz2
qmenumodel-45da05715cd75cb17e13516d534c4a48ec023582.zip
Merge branch 'tari01-pr/cleanup-compile-flags'
Attributes GH PR #19: https://github.com/AyatanaIndicators/qmenumodel/pull/19
Diffstat (limited to 'tests/client')
-rw-r--r--tests/client/actiongrouptest.cpp8
1 files changed, 5 insertions, 3 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\"");