summaryrefslogtreecommitdiffstats
path: root/lib/kross
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-19 18:46:28 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-19 18:46:28 -0600
commit68a4fdfd2c2b70a7c22c4c6d6c916e604a0efac2 (patch)
tree2960e9f2a6227456ee4d6f1b135f6daa30929eac /lib/kross
parent7e1f33d9f50dcae3eeed6143c602303ac360ba8d (diff)
downloadkoffice-68a4fdfd2c2b70a7c22c4c6d6c916e604a0efac2.tar.gz
koffice-68a4fdfd2c2b70a7c22c4c6d6c916e604a0efac2.zip
Rename KCmdLineArgs to TDECmdLineArgs to avoid conflicts with KDE4
Diffstat (limited to 'lib/kross')
-rw-r--r--lib/kross/runner/main.cpp8
-rw-r--r--lib/kross/test/main.cpp6
2 files changed, 7 insertions, 7 deletions
diff --git a/lib/kross/runner/main.cpp b/lib/kross/runner/main.cpp
index 1093a47b..fcff2bb0 100644
--- a/lib/kross/runner/main.cpp
+++ b/lib/kross/runner/main.cpp
@@ -110,18 +110,18 @@ int main(int argc, char **argv)
about.addAuthor("Sebastian Sauer", "Author", "mail@dipe.org");
// Initialize command line args
- KCmdLineArgs::init(argc, argv, &about);
+ TDECmdLineArgs::init(argc, argv, &about);
// Tell which options are supported and parse them.
static KCmdLineOptions options[] = {
{ "+file", I18N_NOOP("Scriptfile"), 0 },
KCmdLineLastOption
};
- KCmdLineArgs::addCmdLineOptions(options);
- KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
+ TDECmdLineArgs::addCmdLineOptions(options);
+ TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
// If no options are defined.
if(args->count() < 1) {
- std::cout << "Syntax: " << KCmdLineArgs::appName() << " scriptfile1 [scriptfile2] [scriptfile3] ..." << std::endl;
+ std::cout << "Syntax: " << TDECmdLineArgs::appName() << " scriptfile1 [scriptfile2] [scriptfile3] ..." << std::endl;
return ERROR_HELP;
}
diff --git a/lib/kross/test/main.cpp b/lib/kross/test/main.cpp
index 7f304ba6..f8caf2d8 100644
--- a/lib/kross/test/main.cpp
+++ b/lib/kross/test/main.cpp
@@ -155,10 +155,10 @@ int main(int argc, char **argv)
"kross@dipe.org");
about.addAuthor("Sebastian Sauer", "Author", "mail@dipe.org");
- KCmdLineArgs::init(argc, argv, &about);
- KCmdLineArgs::addCmdLineOptions(options);
+ TDECmdLineArgs::init(argc, argv, &about);
+ TDECmdLineArgs::addCmdLineOptions(options);
- KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
+ TDECmdLineArgs *args = TDECmdLineArgs::parsedArgs();
TQString interpretername = args->getOption("interpreter");
TQString scriptfilename = args->getOption("scriptfile");