summaryrefslogtreecommitdiff
path: root/src/webtab
diff options
context:
space:
mode:
authorKevin Ottens <ervin@kde.org>2013-04-18 10:53:43 +0200
committerKevin Ottens <ervin@kde.org>2013-04-18 10:53:43 +0200
commit7c54f3ad305dd41af8a542dd6b82eebbfb2d6881 (patch)
tree26d23e7abed876fd7ea6b915851e55b2c3b9e62e /src/webtab
parentFix KUriFilter use (diff)
downloadrekonq-7c54f3ad305dd41af8a542dd6b82eebbfb2d6881.tar.xz
Make it build with QT_STRICT_ITERATORS
Diffstat (limited to 'src/webtab')
-rw-r--r--src/webtab/webpage.cpp8
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");
}