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

Fix clazy warning

parent 4ee719d4
Pipeline #22975 passed with stage
in 59 minutes and 6 seconds
...@@ -122,7 +122,7 @@ void KMailPluginEditorConvertTextManagerInterface::initializePlugins() ...@@ -122,7 +122,7 @@ void KMailPluginEditorConvertTextManagerInterface::initializePlugins()
const QVector<MessageComposer::PluginEditorConvertText *> lstPlugin = MessageComposer::PluginEditorConvertTextManager::self()->pluginsList(); const QVector<MessageComposer::PluginEditorConvertText *> lstPlugin = MessageComposer::PluginEditorConvertTextManager::self()->pluginsList();
for (MessageComposer::PluginEditorConvertText *plugin : lstPlugin) { for (MessageComposer::PluginEditorConvertText *plugin : lstPlugin) {
if (plugin->isEnabled()) { if (plugin->isEnabled()) {
MessageComposer::PluginEditorConvertTextInterface *interface = static_cast<MessageComposer::PluginEditorConvertTextInterface *>(plugin->createInterface(this)); MessageComposer::PluginEditorConvertTextInterface *interface = plugin->createInterface(this);
interface->setRichTextEditor(mRichTextEditor); interface->setRichTextEditor(mRichTextEditor);
interface->setParentWidget(mParentWidget); interface->setParentWidget(mParentWidget);
interface->createAction(mActionCollection); interface->createAction(mActionCollection);
......
...@@ -67,6 +67,7 @@ bool DndFromArkJob::extract(const QMimeData *source) ...@@ -67,6 +67,7 @@ bool DndFromArkJob::extract(const QMimeData *source)
QDir dir(arkPath); QDir dir(arkPath);
const QStringList list = dir.entryList(QDir::NoDotAndDotDot | QDir::Files); const QStringList list = dir.entryList(QDir::NoDotAndDotDot | QDir::Files);
QList<KMail::Composer::AttachmentInfo> infoList; QList<KMail::Composer::AttachmentInfo> infoList;
infoList.reserve(list.size());
for (int i = 0; i < list.size(); ++i) { for (int i = 0; i < list.size(); ++i) {
KMail::Composer::AttachmentInfo info; KMail::Composer::AttachmentInfo info;
info.url = QUrl::fromLocalFile(list.at(i)); info.url = QUrl::fromLocalFile(list.at(i));
......
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