diff options
| author | 2021-12-17 07:06:30 -0500 | |
|---|---|---|
| committer | 2021-12-17 07:06:30 -0500 | |
| commit | 1fdc150116cad39aae5c5da407c3312b47a59e3a (patch) | |
| tree | 123c79a4d7ad2d45781ba03ce939f7539fb428d8 /SQLiteStudio3/coreSQLiteStudio/common/bistrhash.cpp | |
| parent | feda8a7db8d1d7c5439aa8f8feef7cc0dd2b59a0 (diff) | |
New upstream version 3.3.3+dfsg1.upstream/3.3.3+dfsg1
Diffstat (limited to 'SQLiteStudio3/coreSQLiteStudio/common/bistrhash.cpp')
| -rw-r--r-- | SQLiteStudio3/coreSQLiteStudio/common/bistrhash.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/SQLiteStudio3/coreSQLiteStudio/common/bistrhash.cpp b/SQLiteStudio3/coreSQLiteStudio/common/bistrhash.cpp index 5f40521..5aac017 100644 --- a/SQLiteStudio3/coreSQLiteStudio/common/bistrhash.cpp +++ b/SQLiteStudio3/coreSQLiteStudio/common/bistrhash.cpp @@ -31,7 +31,7 @@ void BiStrHash::insert(const QString& left, const QString& right) lowerInverted.insert(right.toLower(), right); } -bool BiStrHash::containsLeft(const QString& left, Qt::CaseSensitivity cs) +bool BiStrHash::containsLeft(const QString& left, Qt::CaseSensitivity cs) const { if (cs == Qt::CaseSensitive) return hash.contains(left); @@ -39,7 +39,7 @@ bool BiStrHash::containsLeft(const QString& left, Qt::CaseSensitivity cs) return lowerHash.contains(left.toLower()); } -bool BiStrHash::containsRight(const QString& right, Qt::CaseSensitivity cs) +bool BiStrHash::containsRight(const QString& right, Qt::CaseSensitivity cs) const { if (cs == Qt::CaseSensitive) return inverted.contains(right); @@ -147,7 +147,10 @@ BiStrHash& BiStrHash::unite(const QHash<QString, QString>& other) { QHashIterator<QString, QString> it(other); while (it.hasNext()) - insert(it.next().key(), it.value()); + { + it.next(); + insert(it.key(), it.value()); + } return *this; } |
