Commit 686e8a89 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

const'ify

parent a2c668e2
Pipeline #89524 passed with stage
in 50 minutes and 18 seconds
......@@ -22,7 +22,7 @@ void ExpertPluginInterface::createAction(KActionCollection *ac)
{
QAction *action = ac->action(QStringLiteral("toggle_mimeparttree"));
if (action) {
PimCommon::ActionType type(action, PimCommon::ActionType::Message);
const PimCommon::ActionType type(action, PimCommon::ActionType::Message);
addActionType(type);
} else {
qCWarning(KMAIL_EXPERT_PLUGIN_LOG) << "toggle_mimeparttree is not defined ";
......
......@@ -26,5 +26,5 @@ private:
void slotActivateTranslator(bool state);
void createAction(KActionCollection *ac);
KToggleAction *mAction = nullptr;
PimCommon::TranslatorWidget *mTranslatorWidget = nullptr;
PimCommon::TranslatorWidget *const mTranslatorWidget;
};
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