[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdepim/kaddressbook/xxport
From:       Laurent Montel <montel () kde ! org>
Date:       2009-04-06 6:47:53
Message-ID: 1239000473.003653.13586.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 949871 by mlaurent:

const'ify


 M  +2 -2      bookmark_xxport.cpp  


--- trunk/KDE/kdepim/kaddressbook/xxport/bookmark_xxport.cpp #949870:949871
@@ -42,7 +42,7 @@
 
 bool BookmarkXXPort::exportContacts( const KABC::AddresseeList &list, const QString& )
 {
-  QString fileName = KStandardDirs::locateLocal( "data", "kabc/bookmarks.xml" );
+  const QString fileName = KStandardDirs::locateLocal( "data", "kabc/bookmarks.xml" );
 
   KBookmarkManager *mgr = KBookmarkManager::managerForFile( fileName, "KAddressbook" );
   KBookmarkDomBuilder *builder = new KBookmarkDomBuilder( mgr->root(), mgr );
@@ -50,7 +50,7 @@
 
   KABC::AddresseeList::ConstIterator it;
   emit newFolder( i18n( "AddressBook" ), false, "" );
-  for ( it = list.begin(); it != list.end(); ++it ) {
+  for ( it = list.constBegin(); it != list.constEnd(); ++it ) {
     if ( !(*it).url().isEmpty() ) {
       QString name = (*it).givenName() + ' ' + (*it).familyName();
       emit newBookmark( name, (*it).url().url().toLatin1(), QString( "" ) );
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic