Fix reorder warning in AbstractScript
ClosedPublic

Authored by graesslin on Jan 27 2019, 7:55 AM.

Details

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)
^~~~

Diff Detail

Repository
R108 KWin
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
graesslin created this revision.Jan 27 2019, 7:55 AM
Restricted Application added a project: KWin. · View Herald TranscriptJan 27 2019, 7:55 AM
Restricted Application added a subscriber: kwin. · View Herald Transcript
graesslin requested review of this revision.Jan 27 2019, 7:55 AM
davidedmundson accepted this revision.Jan 27 2019, 10:10 AM
This revision is now accepted and ready to land.Jan 27 2019, 10:10 AM
This revision was automatically updated to reflect the committed changes.