From 7c54f3ad305dd41af8a542dd6b82eebbfb2d6881 Mon Sep 17 00:00:00 2001 From: Kevin Ottens Date: Thu, 18 Apr 2013 10:53:43 +0200 Subject: Make it build with QT_STRICT_ITERATORS --- src/webtab/webpage.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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::const_iterator it = m_embedMap.find( QString::fromLatin1("embed-")+mimeType ); - if ( it != m_embedMap.end() ) { + QMap::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"); } -- cgit v1.2.1