Fix reorder warning in AbstractScript
Summary: scripting/scripting.h:205:13: warning: ‘KWin::AbstractScript::m_pluginName’ will be initialized after [-Wreorder] QString m_pluginName; ^~~~~~~~~~~~ scripting/scripting.h:204:13: warning: ‘QString KWin::AbstractScript::m_fileName’ [-Wreorder] QString m_fileName; ^~~~~~~~~~ scripting/scripting.cpp:230:1: warning: when initialized here [-Wreorder] KWin::AbstractScript::AbstractScript(int id, QString scriptName, QString pluginName, QObject *parent) ^~~~ Reviewers: #kwin Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D18560
This commit is contained in:
parent
2608026b88
commit
cfecb1e077
1 changed files with 1 additions and 1 deletions
|
@ -230,8 +230,8 @@ QScriptValue kwinCallDBus(QScriptContext *context, QScriptEngine *engine)
|
|||
KWin::AbstractScript::AbstractScript(int id, QString scriptName, QString pluginName, QObject *parent)
|
||||
: QObject(parent)
|
||||
, m_scriptId(id)
|
||||
, m_pluginName(pluginName)
|
||||
, m_fileName(scriptName)
|
||||
, m_pluginName(pluginName)
|
||||
, m_running(false)
|
||||
{
|
||||
if (m_pluginName.isNull()) {
|
||||
|
|
Loading…
Reference in a new issue