summaryrefslogtreecommitdiffstats
path: root/tests/test_auth_enum_actions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_auth_enum_actions.cpp')
-rw-r--r--tests/test_auth_enum_actions.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/test_auth_enum_actions.cpp b/tests/test_auth_enum_actions.cpp
index d7c992a97..8a9030ff7 100644
--- a/tests/test_auth_enum_actions.cpp
+++ b/tests/test_auth_enum_actions.cpp
@@ -27,12 +27,11 @@ int main(void)
}
// Check whether enumerateAction returns at least example actions
int count = 0;
- ActionDescription::List::const_iterator adIt;
- for (adIt = list.begin(); adIt != list.end(); ++adIt)
+ for (const ActionDescription &actionDesc : list)
{
- if (((*adIt).actionId() == "org.tqt.policykit.examples.kick") ||
- ((*adIt).actionId() == "org.tqt.policykit.examples.cry") ||
- ((*adIt).actionId() == "org.tqt.policykit.examples.bleed"))
+ if ((actionDesc.actionId() == "org.tqt.policykit.examples.kick") ||
+ (actionDesc.actionId() == "org.tqt.policykit.examples.cry") ||
+ (actionDesc.actionId() == "org.tqt.policykit.examples.bleed"))
{
count++;
}