diff options
-rw-r--r-- | src/declarative/util/qmlpixmapcache.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/declarative/util/qmlpixmapcache.cpp b/src/declarative/util/qmlpixmapcache.cpp index d024245..4c1d448 100644 --- a/src/declarative/util/qmlpixmapcache.cpp +++ b/src/declarative/util/qmlpixmapcache.cpp @@ -60,12 +60,10 @@ QT_BEGIN_NAMESPACE -#if (QT_VERSION < QT_VERSION_CHECK(4, 6, 2)) -static uint qHash(const QUrl &u) +inline uint qHash(const QUrl &uri) { - return qHash(u.toString()); + return qHash(uri.toEncoded(QUrl::FormattingOption(0x100))); } -#endif class QmlImageReader : public QThread { @@ -222,11 +220,6 @@ static QString toLocalFileOrQrc(const QUrl& url) return r; } -inline uint qHash(const QUrl &uri) -{ - return qHash(uri.toEncoded(QUrl::FormattingOption(0x100))); -} - typedef QHash<QUrl, QmlPixmapReply *> QmlPixmapReplyHash; Q_GLOBAL_STATIC(QmlPixmapReplyHash, qmlActivePixmapReplies); |