From 1fdc150116cad39aae5c5da407c3312b47a59e3a Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Fri, 17 Dec 2021 07:06:30 -0500 Subject: New upstream version 3.3.3+dfsg1. --- SQLiteStudio3/coreSQLiteStudio/common/bistrhash.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'SQLiteStudio3/coreSQLiteStudio/common/bistrhash.cpp') 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& other) { QHashIterator it(other); while (it.hasNext()) - insert(it.next().key(), it.value()); + { + it.next(); + insert(it.key(), it.value()); + } return *this; } -- cgit v1.2.3