Commit 6ad6df77 authored by Laurent Montel's avatar Laurent Montel 😁

Minor optimization

parent 687202f7
...@@ -151,8 +151,8 @@ QVector<KAddressBookImportExportPlugin *> KAddressBookImportExportPrivate::plugi ...@@ -151,8 +151,8 @@ QVector<KAddressBookImportExportPlugin *> KAddressBookImportExportPrivate::plugi
QVector<KAddressBookImportExportPlugin *> lst; QVector<KAddressBookImportExportPlugin *> lst;
QVector<KAddressBookImportExportInfo>::ConstIterator end(mPluginList.constEnd()); QVector<KAddressBookImportExportInfo>::ConstIterator end(mPluginList.constEnd());
for (QVector<KAddressBookImportExportInfo>::ConstIterator it = mPluginList.constBegin(); it != end; ++it) { for (QVector<KAddressBookImportExportInfo>::ConstIterator it = mPluginList.constBegin(); it != end; ++it) {
if ((*it).plugin) { if (auto plugin = (*it).plugin) {
lst << (*it).plugin; lst << plugin;
} }
} }
return lst; return lst;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment