Commit 0ad52af0 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix clazy warning

parent 7f1026a2
Pipeline #61351 failed with stage
in 9 minutes and 23 seconds
......@@ -101,8 +101,7 @@ QTextDocument *ConfigAgentDelegate::document(const QStyleOptionViewItem &option,
"<tr>"
"<td><img src=\"status_icon\"/> %1 %2</td>"
"</tr>")
.arg(statusMessage)
.arg(status == 1 ? QStringLiteral("(%1%)").arg(progress) : QLatin1String(""))
.arg(statusMessage, status == 1 ? QStringLiteral("(%1%)").arg(progress) : QLatin1String(""))
+ QLatin1String("</table></body></html>");
document->setHtml(content);
......
......@@ -143,7 +143,7 @@ AccountsPageSendingTab::AccountsPageSendingTab(QWidget *parent)
glay->addWidget(mUndoSend, 4, 0);
connect(mUndoSend, &QCheckBox::toggled, this, [this](bool state) {
mUndoSendComboBox->setEnabled(state);
Q_EMIT slotEmitChanged();
slotEmitChanged();
});
mUndoSendComboBox = new UndoSendCombobox(this);
......
......@@ -133,7 +133,8 @@ QHash<MessageComposer::PluginActionType::Type, QList<QAction *>> KMailPluginEdit
{
if (mActionHash.isEmpty()) {
for (MessageComposer::PluginEditorConvertTextInterface *interface : qAsConst(mListPluginInterface)) {
for (const MessageComposer::PluginActionType &actionType : interface->actionTypes()) {
const auto actionTypes = interface->actionTypes();
for (const MessageComposer::PluginActionType &actionType : actionTypes) {
MessageComposer::PluginActionType::Type type = actionType.type();
QAction *currentAction = actionType.action();
if (!currentAction) {
......
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