Commit 2a88ec4a authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

const'ify

parent 0d417740
Pipeline #91758 passed with stage
in 24 minutes and 39 seconds
......@@ -217,7 +217,7 @@ bool KMMainWin::restoreDockedState(int n)
// Override this if the main window was hidden in the system tray
// when the session was saved.
KConfigGroup config(KConfigGui::sessionConfig(), QString::number(n));
bool show = !config.readEntry("docked", false);
const bool show = !config.readEntry("docked", false);
return KMainWindow::restore(n, show);
}
......
......@@ -441,7 +441,7 @@ void KMReaderMainWin::initializeAkonadiStandardAction()
Akonadi::StandardMailActionManager::MarkMailAsImportant,
Akonadi::StandardMailActionManager::MarkMailAsActionItem};
for (Akonadi::StandardMailActionManager::Type mailAction : mailActions) {
for (const Akonadi::StandardMailActionManager::Type mailAction : mailActions) {
QAction *act = mAkonadiStandardActionManager->createAction(mailAction);
mAkonadiStandardActionManager->interceptAction(mailAction);
connect(act, &QAction::triggered, this, &KMReaderMainWin::slotMarkMailAs);
......
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