kdeplasma-addons: const-ify variable in KonsoleProfilesWidget::slotProfileClicked()

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2023-09-16 08:13:42 +03:00
parent 45c5a2d8f8
commit c22daafe11

View file

@ -161,8 +161,8 @@ void KonsoleProfilesWidget::slotProfileClicked()
Plasma::ToolButton* profilebutton = qobject_cast<Plasma::ToolButton*>(sender());
const QString profilename = profilebutton->property("_k_profile").toString();
Q_ASSERT(!profilename.isEmpty());
QStringList konsoleargs;
konsoleargs << "--profile" << profilename;
const QStringList konsoleargs = QStringList()
<< "--profile" << profilename;
QString invocationerror;
const int invocationresult = KToolInvocation::kdeinitExec("konsole", konsoleargs, &invocationerror);
if (invocationresult != 0) {