[Kde-pim] KDE/kdepimlibs/kabc/plugins/file

Kevin Krammer kevin.krammer at gmx.at
Sat Oct 27 11:49:18 BST 2007


SVN commit 729905 by krake:

- Replacing deprecated KConfigGroup::entryMap()
  The old code used only the map's keys anyway, not much change

Reviewed by David Faure
http://lists.kde.org/?t=119334514900004&r=1&w=2

CCMAIL: kde-pim at kde.org


 M  +5 -5      resourcefile.cpp  


--- trunk/KDE/kdepimlibs/kabc/plugins/file/resourcefile.cpp #729904:729905
@@ -296,14 +296,14 @@
   KConfig cfg( KStandardDirs::locateLocal( "data", "kabc/distlists" ) );
 
   KConfigGroup cg( &cfg, "DistributionLists" );
-  QMap<QString,QString> entryMap = cg.entryMap();
+  const QStringList entryList = cg.keyList();
 
   d->mMissingEntries.clear();
 
-  QMap<QString,QString>::ConstIterator it;
-  for ( it = entryMap.constBegin(); it != entryMap.constEnd(); ++it ) {
-    QString name = it.key();
-    QStringList value = cg.readEntry( name, QStringList() );
+  QStringList::ConstIterator it;
+  for ( it = entryList.constBegin(); it != entryList.constEnd(); ++it ) {
+    const QString name = *it;
+    const QStringList value = cg.readEntry( name, QStringList() );
 
     kDebug(5700) << "ResourceFile::loadDistributionLists():" << name
                  << ":" << value.join( "," );
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list