[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kauth] autotests: Use explicit flag value instead of nullptr
From:       Friedrich W. H. Kossebau <null () kde ! org>
Date:       2017-06-01 0:00:53
Message-ID: E1dGDXp-000647-96 () code ! kde ! org
[Download RAW message or body]

Git commit a6636439d268ecb401705c24d913a98408623ada by Friedrich W. H. Kossebau.
Committed on 31/05/2017 at 23:50.
Pushed by kossebau into branch 'master'.

Use explicit flag value instead of nullptr

M  +2    -2    autotests/SetupActionTest.cpp

https://commits.kde.org/kauth/a6636439d268ecb401705c24d913a98408623ada

diff --git a/autotests/SetupActionTest.cpp b/autotests/SetupActionTest.cpp
index 43aef17..924af26 100644
--- a/autotests/SetupActionTest.cpp
+++ b/autotests/SetupActionTest.cpp
@@ -66,7 +66,7 @@ void SetupActionTest::testNonExistentAction()
     QVERIFY(action.isValid());
 
     // Now with regexp check
-    emit changeCapabilities(nullptr);
+    emit changeCapabilities(KAuth::AuthBackend::NoCapability);
 
     action = KAuth::Action(QLatin1String("/safinvalid124%$&"));
     QVERIFY(!action.isValid());
@@ -93,7 +93,7 @@ void SetupActionTest::testBasicActionProperties()
     action.setName(QLatin1String("i.do.not.exist"));
     QVERIFY(!action.isValid());
 
-    emit changeCapabilities(nullptr);
+    emit changeCapabilities(KAuth::AuthBackend::NoCapability);
 
     action = KAuth::Action(QLatin1String("i.do.not.exist"), QLatin1String("details"));
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic