diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-19 18:23:12 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-19 18:23:12 -0600 |
commit | 6e8a7cc94c1eb8b67e91e6dc2f864dfeec51d9cc (patch) | |
tree | f1325de444fa5ae1bf9d1dcb8cd735ae134e5226 /tdecore/kcmdlineargs.cpp | |
parent | 54928e863500dda7674b5a6d425a77065095b6d3 (diff) | |
download | tdelibs-6e8a7cc94c1eb8b67e91e6dc2f864dfeec51d9cc.tar.gz tdelibs-6e8a7cc94c1eb8b67e91e6dc2f864dfeec51d9cc.zip |
Rename qt_argc and qt_argv methods to avoid conflicts with KDE4 symbols
Diffstat (limited to 'tdecore/kcmdlineargs.cpp')
-rw-r--r-- | tdecore/kcmdlineargs.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/tdecore/kcmdlineargs.cpp b/tdecore/kcmdlineargs.cpp index 7abc46f7a..75eb9d633 100644 --- a/tdecore/kcmdlineargs.cpp +++ b/tdecore/kcmdlineargs.cpp @@ -676,14 +676,14 @@ KCmdLineArgs::parseAllArgs() * Return argc */ int * -KCmdLineArgs::qt_argc() +KCmdLineArgs::tqt_argc() { if (!argsList) KApplication::addCmdLineOptions(); // Lazy bastards! - static int qt_argc = -1; - if( qt_argc != -1 ) - return &qt_argc; + static int tqt_argc = -1; + if( tqt_argc != -1 ) + return &tqt_argc; KCmdLineArgs *args = parsedArgs("qt"); assert(args); // No qt options have been added! @@ -697,8 +697,8 @@ KCmdLineArgs::qt_argc() } assert(argc >= (args->count()+1)); - qt_argc = args->count() +1; - return &qt_argc; + tqt_argc = args->count() +1; + return &tqt_argc; } /** @@ -707,14 +707,14 @@ KCmdLineArgs::qt_argc() * Return argv */ char *** -KCmdLineArgs::qt_argv() +KCmdLineArgs::tqt_argv() { if (!argsList) KApplication::addCmdLineOptions(); // Lazy bastards! - static char** qt_argv; - if( qt_argv != NULL ) - return &qt_argv; + static char** tqt_argv; + if( tqt_argv != NULL ) + return &tqt_argv; KCmdLineArgs *args = parsedArgs("qt"); assert(args); // No qt options have been added! @@ -727,16 +727,16 @@ KCmdLineArgs::qt_argv() exit(255); } - qt_argv = new char*[ args->count() + 2 ]; - qt_argv[ 0 ] = tqstrdup( appName()); + tqt_argv = new char*[ args->count() + 2 ]; + tqt_argv[ 0 ] = tqstrdup( appName()); int i = 0; for(; i < args->count(); i++) { - qt_argv[i+1] = tqstrdup((char *) args->arg(i)); + tqt_argv[i+1] = tqstrdup((char *) args->arg(i)); } - qt_argv[i+1] = 0; + tqt_argv[i+1] = 0; - return &qt_argv; + return &tqt_argv; } void |