diff options
author | Kevin Ottens <ervin@kde.org> | 2013-04-18 10:53:43 +0200 |
---|---|---|
committer | Kevin Ottens <ervin@kde.org> | 2013-04-18 10:53:43 +0200 |
commit | 7c54f3ad305dd41af8a542dd6b82eebbfb2d6881 (patch) | |
tree | 26d23e7abed876fd7ea6b915851e55b2c3b9e62e | |
parent | Fix KUriFilter use (diff) | |
download | rekonq-7c54f3ad305dd41af8a542dd6b82eebbfb2d6881.tar.xz |
Make it build with QT_STRICT_ITERATORS
-rw-r--r-- | src/webtab/webpage.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/webtab/webpage.cpp b/src/webtab/webpage.cpp index ce5a802f..9598d7c5 100644 --- a/src/webtab/webpage.cpp +++ b/src/webtab/webpage.cpp @@ -363,8 +363,8 @@ static bool shouldEmbed(const QString &_mimeType) // First check in user's settings whether to embed or not // 1 - in the filetypesrc config file (written by the configuration module) - QMap<QString, QString>::const_iterator it = m_embedMap.find( QString::fromLatin1("embed-")+mimeType ); - if ( it != m_embedMap.end() ) { + QMap<QString, QString>::const_iterator it = m_embedMap.constFind( QString::fromLatin1("embed-")+mimeType ); + if ( it != m_embedMap.constEnd() ) { kDebug() << mimeType << it.value(); return it.value() == QLatin1String("true"); } @@ -372,8 +372,8 @@ static bool shouldEmbed(const QString &_mimeType) if (alwaysEmbedMimeTypeGroup(mimeType)) return true; //always embed mimetype inode/*, Browser/* and Konqueror/* const QString mimeTypeGroup = mimeType.left(mimeType.indexOf('/')); - it = m_embedMap.find( QString::fromLatin1("embed-")+mimeTypeGroup ); - if ( it != m_embedMap.end() ) { + it = m_embedMap.constFind( QString::fromLatin1("embed-")+mimeTypeGroup ); + if ( it != m_embedMap.constEnd() ) { kDebug() << mimeType << "group setting:" << it.value(); return it.value() == QLatin1String("true"); } |