1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-01 13:47:01 -04:00

Fixed stringlist utils

This commit is contained in:
f4exb
2026-02-01 17:15:47 +01:00
parent c0b7232d74
commit ed81308b9f
2 changed files with 8 additions and 6 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
#include "stringlist.h"
static bool StringListUtil::containsAll(const QStringList &haystack, const QStringList &needles)
bool StringListUtil::containsAll(const QStringList &haystack, const QStringList &needles)
{
for (const auto &s : needles) {
if (!haystack.contains(s)) // optionally add Qt::CaseSensitivity
@@ -9,7 +9,7 @@ static bool StringListUtil::containsAll(const QStringList &haystack, const QStri
return true;
}
static bool StringListUtil::containsAny(const QStringList &haystack, const QStringList &needles)
bool StringListUtil::containsAny(const QStringList &haystack, const QStringList &needles)
{
for (const auto &s : needles) {
if (haystack.contains(s)) // optionally add Qt::CaseSensitivity