From cfecb1e0770ca6c8fa879124e11b03081342b9ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Fl=C3=B6ser?= Date: Sun, 27 Jan 2019 08:54:28 +0100 Subject: [PATCH] Fix reorder warning in AbstractScript MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- scripting/scripting.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripting/scripting.cpp b/scripting/scripting.cpp index 8715350c16..fc148c33c5 100644 --- a/scripting/scripting.cpp +++ b/scripting/scripting.cpp @@ -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()) {