Commit 84ad45cf authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

const'ify list

parent 2ca56b46
Pipeline #92788 passed with stage
in 7 minutes and 17 seconds
......@@ -106,7 +106,7 @@ void PlainTextEditor::contextMenuEvent(QContextMenuEvent *event)
if (popup) {
const bool emptyDocument = document()->isEmpty();
if (!isReadOnly()) {
QList<QAction *> actionList = popup->actions();
const QList<QAction *> actionList = popup->actions();
enum { UndoAct, RedoAct, CutAct, CopyAct, PasteAct, ClearAct, SelectAllAct, NCountActs };
QAction *separatorAction = nullptr;
const int idx = actionList.indexOf(actionList[SelectAllAct]) + 1;
......
......@@ -162,7 +162,7 @@ QMenu *RichTextEditor::mousePopupMenu(QPoint pos)
if (popup) {
const bool emptyDocument = document()->isEmpty();
if (!isReadOnly()) {
QList<QAction *> actionList = popup->actions();
const QList<QAction *> actionList = popup->actions();
enum { UndoAct, RedoAct, CutAct, CopyAct, PasteAct, ClearAct, SelectAllAct, NCountActs };
QAction *separatorAction = nullptr;
const int idx = actionList.indexOf(actionList[SelectAllAct]) + 1;
......
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