Make QCommandLineParser static

No need to pass it around this way to set up the containment.
This commit is contained in:
Sebastian Kügler 2013-08-24 01:07:47 +02:00
parent 7cddcb64c1
commit b9723c3142

View File

@ -27,6 +27,7 @@
static const char description[] = "Plasma Shell";
static const char version[] = "2.0";
static QCommandLineParser parser;
int main(int argc, char** argv)
{
@ -37,7 +38,6 @@ int main(int argc, char** argv)
QCommandLineOption dbg = QCommandLineOption(QStringList() << QStringLiteral("d") << QStringLiteral("qmljsdebugger"),
QStringLiteral("Enable QML Javascript debugger"));
QCommandLineParser parser;
parser.addVersionOption();
parser.addHelpOption(description);
parser.addOption(dbg);