From 9334fe9f2481cf04db0b19da00f09fefa364edef Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Sun, 25 Aug 2024 01:37:46 +0200 Subject: [PATCH] Remove const from qHash --- src/collection/collectionfilter.cpp | 4 ++-- src/playlist/playlistfilter.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/collection/collectionfilter.cpp b/src/collection/collectionfilter.cpp index 9a238f58b..651bfce00 100644 --- a/src/collection/collectionfilter.cpp +++ b/src/collection/collectionfilter.cpp @@ -61,9 +61,9 @@ bool CollectionFilter::filterAcceptsRow(const int source_row, const QModelIndex } #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) - const size_t hash = qHash(filter_string_); + size_t hash = qHash(filter_string_); #else - const uint hash = qHash(filter_string_); + uint hash = qHash(filter_string_); #endif if (hash != query_hash_) { FilterParser p(filter_string_); diff --git a/src/playlist/playlistfilter.cpp b/src/playlist/playlistfilter.cpp index 0a0a5e3d3..21507506d 100644 --- a/src/playlist/playlistfilter.cpp +++ b/src/playlist/playlistfilter.cpp @@ -58,9 +58,9 @@ bool PlaylistFilter::filterAcceptsRow(const int source_row, const QModelIndex &s if (filter_string_.isEmpty()) return true; #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) - const size_t hash = qHash(filter_string_); + size_t hash = qHash(filter_string_); #else - const uint hash = qHash(filter_string_); + uint hash = qHash(filter_string_); #endif if (hash != query_hash_) { FilterParser p(filter_string_);