summaryrefslogtreecommitdiffstats
path: root/kdecore/kcmdlineargs.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-06 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-06 19:48:06 +0000
commit0761ef3c62e43ffed5a81854b7b45e579016f5b7 (patch)
tree5aa48590c295ad6d29aafe4782d7f762f2ee38d3 /kdecore/kcmdlineargs.cpp
parentcb4a5d685bd5a3129e1edb8bac1ee6c41939fe7b (diff)
downloadtdelibs-0761ef3c62e43ffed5a81854b7b45e579016f5b7.tar.gz
tdelibs-0761ef3c62e43ffed5a81854b7b45e579016f5b7.zip
Locked down more ambiguous datatypes
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1160010 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdecore/kcmdlineargs.cpp')
-rw-r--r--kdecore/kcmdlineargs.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kdecore/kcmdlineargs.cpp b/kdecore/kcmdlineargs.cpp
index 3e70156cd..9600da39c 100644
--- a/kdecore/kcmdlineargs.cpp
+++ b/kdecore/kcmdlineargs.cpp
@@ -91,7 +91,7 @@ protected:
};
-class KCmdLineParsedArgs : public QStrList
+class KCmdLineParsedArgs : public TQStrList
{
public:
KCmdLineParsedArgs()
@@ -483,7 +483,7 @@ KCmdLineArgs::findOption(const char *_opt, TQCString opt, int &i, bool _enabled,
{
argument = _opt+p;
}
- args->setOption(singleCharOption, argument);
+ args->setOption(singleCharOption, (const char*)argument);
return;
}
break; // Unknown argument
@@ -525,7 +525,7 @@ KCmdLineArgs::findOption(const char *_opt, TQCString opt, int &i, bool _enabled,
}
argument = argv[i];
}
- args->setOption(opt, argument);
+ args->setOption(opt, (const char*)argument);
}
else
{
@@ -924,7 +924,7 @@ KCmdLineArgs::usage(const char *id)
name = name.mid(1);
if ((name[0] == '[') && (name[name.length()-1] == ']'))
name = name.mid(1, name.length()-2);
- printQ(optionFormatString.arg(name, -25)
+ printQ(optionFormatString.arg(QString(name), -25)
.arg(description));
}
else
@@ -948,12 +948,12 @@ KCmdLineArgs::usage(const char *id)
opt = opt + name;
if (!option->def)
{
- printQ(optionFormatString.arg(opt, -25)
+ printQ(optionFormatString.arg(QString(opt), -25)
.arg(description));
}
else
{
- printQ(optionFormatStringDef.arg(opt, -25)
+ printQ(optionFormatStringDef.arg(QString(opt), -25)
.arg(description).arg(option->def));
}
opt = "";
@@ -1113,7 +1113,7 @@ KCmdLineArgs::setOption(const TQCString &opt, const char *value)
parsedOptionList->insert( opt, new TQCString(value) );
}
-QCString
+TQCString
KCmdLineArgs::getOption(const char *_opt) const
{
TQCString *value = 0;