mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 02:12:51 +00:00
kreadconfig: do not create application instance
no events to process Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
3136e1d92d
commit
15b2ebeea2
2 changed files with 1 additions and 5 deletions
|
@ -63,8 +63,6 @@ int main(int argc, char **argv)
|
|||
aboutData.addAuthor(ki18n("Bernhard Rosenkraenzer"), KLocalizedString(), "bero@redhat.com");
|
||||
KCmdLineArgs::init(argc, argv, &aboutData);
|
||||
|
||||
QCoreApplication app(argc, argv);
|
||||
|
||||
KCmdLineOptions options;
|
||||
options.add("file <file>", ki18n("Use <file> instead of global config"));
|
||||
options.add("group <group>", ki18n("Group to look in. Use repeatedly for nested groups."), "KDE");
|
||||
|
|
|
@ -43,8 +43,6 @@ int main(int argc, char **argv)
|
|||
aboutData.addAuthor(ki18n("Bernhard Rosenkraenzer"), ki18n("Wrote kreadconfig on which this is based"), "bero@redhat.com");
|
||||
KCmdLineArgs::init(argc, argv, &aboutData);
|
||||
|
||||
QCoreApplication app(argc, argv);
|
||||
|
||||
KCmdLineOptions options;
|
||||
options.add("file <file>", ki18n("Use <file> instead of global config"));
|
||||
options.add("group <group>", ki18n("Group to look in. Use repeatedly for nested groups."), "KDE");
|
||||
|
@ -63,7 +61,7 @@ int main(int argc, char **argv)
|
|||
KCmdLineArgs::usage();
|
||||
return 1;
|
||||
}
|
||||
QString value = args->arg(0);
|
||||
const QString value = args->arg(0);
|
||||
|
||||
KComponentData inst(&aboutData);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue