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

Const'ify pointer

parent 7d1a5d8b
Pipeline #33597 passed with stage
in 12 minutes and 10 seconds
......@@ -19,8 +19,8 @@ class EmoticonTextEditAction::EmoticonTextEditActionPrivate
{
public:
EmoticonTextEditActionPrivate()
: emoticonMenu(new QMenu())
{
emoticonMenu = new QMenu();
selector = new EmoticonTextEditSelector(emoticonMenu);
QWidgetAction *action = new QWidgetAction(emoticonMenu);
action->setDefaultWidget(selector);
......@@ -33,7 +33,7 @@ public:
delete emoticonMenu;
}
QMenu *emoticonMenu = nullptr;
QMenu *const emoticonMenu;
EmoticonTextEditSelector *selector = nullptr;
};
......
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