aboutsummaryrefslogtreecommitdiffstats
path: root/SQLiteStudio3/Tests/CompletionHelperTest/tst_completionhelpertest.cpp
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@ubuntu.com>2018-07-27 23:54:15 -0400
committerLibravatarUnit 193 <unit193@ubuntu.com>2018-07-27 23:54:15 -0400
commit6d3d39356473078c6b47e03b8a7616e4b34de928 (patch)
treefe5be2e6a08e4cfc73207746aba4c9fccfecfa10 /SQLiteStudio3/Tests/CompletionHelperTest/tst_completionhelpertest.cpp
parentf98e49169a40876bcf1df832de6e908d1b350193 (diff)
parentfeda8a7db8d1d7c5439aa8f8feef7cc0dd2b59a0 (diff)
Update upstream source from tag 'upstream/3.2.1+dfsg1'
Update to upstream version '3.2.1+dfsg1' with Debian dir 5ea0333565de4dc898c062cc0ff4ba1153e2c1e4
Diffstat (limited to 'SQLiteStudio3/Tests/CompletionHelperTest/tst_completionhelpertest.cpp')
-rw-r--r--SQLiteStudio3/Tests/CompletionHelperTest/tst_completionhelpertest.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/SQLiteStudio3/Tests/CompletionHelperTest/tst_completionhelpertest.cpp b/SQLiteStudio3/Tests/CompletionHelperTest/tst_completionhelpertest.cpp
index fc21a55..fd5611a 100644
--- a/SQLiteStudio3/Tests/CompletionHelperTest/tst_completionhelpertest.cpp
+++ b/SQLiteStudio3/Tests/CompletionHelperTest/tst_completionhelpertest.cpp
@@ -63,7 +63,7 @@ CompletionHelperTest::CompletionHelperTest()
QList<ExpectedToken *> CompletionHelperTest::getEntryList(QList<ExpectedTokenPtr> tokens)
{
QList<ExpectedToken*> entries;
- foreach (ExpectedTokenPtr expectedToken, tokens)
+ for (ExpectedTokenPtr expectedToken : tokens)
entries += expectedToken.data();
return entries;
@@ -72,7 +72,7 @@ QList<ExpectedToken *> CompletionHelperTest::getEntryList(QList<ExpectedTokenPtr
QSet<ExpectedToken::Type> CompletionHelperTest::getTypeList(QList<ExpectedTokenPtr> tokens)
{
QSet<ExpectedToken::Type> entries;
- foreach (ExpectedTokenPtr expectedToken, tokens)
+ for (ExpectedTokenPtr expectedToken : tokens)
entries += expectedToken->type;
return entries;
@@ -101,7 +101,7 @@ bool CompletionHelperTest::contains(const QList<ExpectedTokenPtr> &tokens, Expec
int CompletionHelperTest::find(const QList<ExpectedTokenPtr> &tokens, ExpectedToken::Type type)
{
int i = 0;
- foreach (ExpectedTokenPtr token, tokens)
+ for (ExpectedTokenPtr token : tokens)
{
if (token->type == type)
return i;
@@ -114,7 +114,7 @@ int CompletionHelperTest::find(const QList<ExpectedTokenPtr> &tokens, ExpectedTo
int CompletionHelperTest::find(const QList<ExpectedTokenPtr> &tokens, ExpectedToken::Type type, const QString &value)
{
int i = -1;
- foreach (ExpectedTokenPtr token, tokens)
+ for (ExpectedTokenPtr token : tokens)
{
i++;
if (token->type != type)
@@ -129,7 +129,7 @@ int CompletionHelperTest::find(const QList<ExpectedTokenPtr> &tokens, ExpectedTo
int CompletionHelperTest::find(const QList<ExpectedTokenPtr> &tokens, ExpectedToken::Type type, const QString &value, const QString &prefix)
{
int i = -1;
- foreach (ExpectedTokenPtr token, tokens)
+ for (ExpectedTokenPtr token : tokens)
{
i++;
if (token->type != type)
@@ -147,7 +147,7 @@ int CompletionHelperTest::find(const QList<ExpectedTokenPtr> &tokens, ExpectedTo
int CompletionHelperTest::find(const QList<ExpectedTokenPtr> &tokens, ExpectedToken::Type type, const QString &value, const QString &prefix, const QString &contextInfo)
{
int i = -1;
- foreach (ExpectedTokenPtr token, tokens)
+ for (ExpectedTokenPtr token : tokens)
{
i++;
if (token->type != type)