[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: Re: [kde-baseapps] konq-plugins/dirfilter: iterator -> const_iterator
From: Dawit A <adawit () kde ! org>
Date: 2012-09-18 15:34:36
Message-ID: CALa28R5wod9HOdSawb60a09Lc3h85YFQeJmtQsOvk5U2-7yXfw () mail ! gmail ! com
[Download RAW message or body]
Hmm... That is why the version in 4.9 branch was different from the master
one! Anyhow, this will be resolved soon enough since I will soon push my
dirfilter plugin changes for the 4.10 release.
On Tue, Sep 18, 2012 at 6:18 AM, Christophe Giboudeaux
<cgiboudeaux@gmx.com>wrote:
> Hi,
>
> On Saturday 15 September 2012 19:53:24 Dawit Alemayehu wrote:
> > Git commit b99821f0908f7c15518228749f340eebf9b5df77 by Dawit Alemayehu.
> > Committed on 15/09/2012 at 19:51.
> > Pushed by adawit into branch 'master'.
> >
> > iterator -> const_iterator
> >
> > M +3 -3 konq-plugins/dirfilter/dirfilterplugin.cpp
> >
> >
> http://commits.kde.org/kde-baseapps/b99821f0908f7c15518228749f340eebf9b5df77
> >
> > diff --git a/konq-plugins/dirfilter/dirfilterplugin.cpp
> > b/konq-plugins/dirfilter/dirfilterplugin.cpp index 8b8040f..02e1d1f
> 100644
> > --- a/konq-plugins/dirfilter/dirfilterplugin.cpp
> > +++ b/konq-plugins/dirfilter/dirfilterplugin.cpp
> > @@ -260,7 +260,7 @@ void DirFilterPlugin::slotItemSelected (QAction
> *action)
> > return;
> >
> > MimeInfoMap::iterator it = m_pMimeInfo.begin();
> > - MimeInfoMap::iterator itEnd = m_pMimeInfo.end();
> > + MimeInfoMap::const_iterator itEnd = m_pMimeInfo.end();
> > while (it != itEnd && action != it.value().action)
> > it++;
> >
> > @@ -283,7 +283,7 @@ void DirFilterPlugin::slotItemSelected (QAction
> *action)
> > filters << it.key();
> >
> > MimeInfoMap::iterator item = m_pMimeInfo.begin();
> > - MimeInfoMap::iterator itemEnd = m_pMimeInfo.end();
> > + MimeInfoMap::const_iterator itemEnd = m_pMimeInfo.end();
> > while ( item != itemEnd )
> > {
> > if ( item != it )
> > @@ -375,7 +375,7 @@ void DirFilterPlugin::slotReset()
> > if (!m_part || !m_listingExt)
> > return;
> >
> > - MimeInfoMap::iterator itEnd = m_pMimeInfo.end();
> > + MimeInfoMap::const_iterator itEnd = m_pMimeInfo.end();
> > for (MimeInfoMap::iterator it = m_pMimeInfo.begin(); it != itEnd;
> ++it)
> > it.value().useAsFilter = false;
>
> This reverts commit 64b1cc1e and reintroduces the build error.
>
> Please add -DQT_STRICT_ITERATORS to your CXXFLAGS
>
>
> Christophe
>
[Attachment #3 (text/html)]
Hmm... That is why the version in 4.9 branch was different from the master one! \
Anyhow, this will be resolved soon enough since I will soon push my dirfilter plugin \
changes for the 4.10 release.<br><br><div class="gmail_quote">
On Tue, Sep 18, 2012 at 6:18 AM, Christophe Giboudeaux <span dir="ltr"><<a \
href="mailto:cgiboudeaux@gmx.com" target="_blank">cgiboudeaux@gmx.com</a>></span> \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex">
Hi,<br>
<br>
On Saturday 15 September 2012 19:53:24 Dawit Alemayehu wrote:<br>
> Git commit b99821f0908f7c15518228749f340eebf9b5df77 by Dawit Alemayehu.<br>
> Committed on 15/09/2012 at 19:51.<br>
> Pushed by adawit into branch 'master'.<br>
><br>
> iterator -> const_iterator<br>
><br>
> M +3 -3 konq-plugins/dirfilter/dirfilterplugin.cpp<br>
><br>
> <a href="http://commits.kde.org/kde-baseapps/b99821f0908f7c15518228749f340eebf9b5df77" \
target="_blank">http://commits.kde.org/kde-baseapps/b99821f0908f7c15518228749f340eebf9b5df77</a><br>
><br>
> diff --git a/konq-plugins/dirfilter/dirfilterplugin.cpp<br>
> b/konq-plugins/dirfilter/dirfilterplugin.cpp index 8b8040f..02e1d1f 100644<br>
> --- a/konq-plugins/dirfilter/dirfilterplugin.cpp<br>
> +++ b/konq-plugins/dirfilter/dirfilterplugin.cpp<br>
> @@ -260,7 +260,7 @@ void DirFilterPlugin::slotItemSelected (QAction *action)<br>
> return;<br>
><br>
> MimeInfoMap::iterator it = m_pMimeInfo.begin();<br>
> - MimeInfoMap::iterator itEnd = m_pMimeInfo.end();<br>
> + MimeInfoMap::const_iterator itEnd = m_pMimeInfo.end();<br>
> while (it != itEnd && action != it.value().action)<br>
> it++;<br>
><br>
> @@ -283,7 +283,7 @@ void DirFilterPlugin::slotItemSelected (QAction *action)<br>
> filters << it.key();<br>
><br>
> MimeInfoMap::iterator item = m_pMimeInfo.begin();<br>
> - MimeInfoMap::iterator itemEnd = m_pMimeInfo.end();<br>
> + MimeInfoMap::const_iterator itemEnd = m_pMimeInfo.end();<br>
> while ( item != itemEnd )<br>
> {<br>
> if ( item != it )<br>
> @@ -375,7 +375,7 @@ void DirFilterPlugin::slotReset()<br>
> if (!m_part || !m_listingExt)<br>
> return;<br>
><br>
> - MimeInfoMap::iterator itEnd = m_pMimeInfo.end();<br>
> + MimeInfoMap::const_iterator itEnd = m_pMimeInfo.end();<br>
> for (MimeInfoMap::iterator it = m_pMimeInfo.begin(); it != itEnd; ++it)<br>
> it.value().useAsFilter = false;<br>
<br>
This reverts commit 64b1cc1e and reintroduces the build error.<br>
<br>
Please add -DQT_STRICT_ITERATORS to your CXXFLAGS<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
Christophe<br>
</font></span></blockquote></div><br>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic