Commit a8bb7a5d authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix some clazy warning

parent 3d42043d
......@@ -148,8 +148,10 @@ QVector<MailTransport::TransportAbstractPlugin *> TransportPluginManager::plugin
MailTransport::TransportAbstractPlugin *TransportPluginManager::plugin(const QString &identifier)
{
for (MailTransport::TransportAbstractPlugin *p : pluginsList()) {
for (const MailTransport::TransportAbstractPluginInfo &info : p->names()) {
const QVector<MailTransport::TransportAbstractPlugin *> lstPlugins = pluginsList();
for (MailTransport::TransportAbstractPlugin *p : lstPlugins) {
const QVector<TransportAbstractPluginInfo> lstPluginInfo = p->names();
for (const MailTransport::TransportAbstractPluginInfo &info : lstPluginInfo) {
if (info.identifier == identifier) {
return p;
}
......
......@@ -493,11 +493,13 @@ void TransportManagerPrivate::fillTypes()
void TransportManagerPrivate::updatePluginList()
{
types.clear();
for (MailTransport::TransportAbstractPlugin *plugin : MailTransport::TransportPluginManager::self()->pluginsList()) {
const QVector<MailTransport::TransportAbstractPlugin *> lstPlugins = MailTransport::TransportPluginManager::self()->pluginsList();
for (MailTransport::TransportAbstractPlugin *plugin : lstPlugins) {
if (plugin->names().isEmpty()) {
qCDebug(MAILTRANSPORT_LOG) << "Plugin " << plugin << " doesn't provide plugin";
}
for (const MailTransport::TransportAbstractPluginInfo &info : plugin->names()) {
const QVector<TransportAbstractPluginInfo> lstInfos = plugin->names();
for (const MailTransport::TransportAbstractPluginInfo &info : lstInfos) {
TransportType type;
type.d->mName = info.name;
type.d->mDescription = info.description;
......
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