[PATCH] KProcess port of khelpcenter
Oswald Buddenhagen
ossi at kde.org
Tue Dec 18 13:07:26 GMT 2007
On Tue, Dec 18, 2007 at 12:12:59PM +0100, Ralf Habacker wrote:
> - I have changed the variable holding stdout results into QByteArray to
> avoid the known problems.
>
why do you use this variable at all? there is no point in it.
> - this requires to remove QLatin1String - hope there are no side effects
>
there are none. i suggest you rtfm on qlatin1sting. ;)
> Index: searchengine.cpp
> ===================================================================
> --- searchengine.cpp (revision 749421)
> +++ searchengine.cpp (working copy)
> + KProcess *proc = new KProcess();
> QStringList cmd = commonSearchProgram.split( " ");
> QStringList::ConstIterator it;
> for( it = cmd.begin(); it != cmd.end(); ++it ) {
> @@ -349,37 +330,38 @@
> arg.endsWith(QLatin1Char('\"'))) {
> arg = arg.mid( 1, arg.length() - 2 );
> }
> - *mProc << arg.toUtf8();
> + proc << arg.toUtf8();
> }
>
these code fragments suggest kshell::splitargs usage, but it's hard to
say without the context.
--
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Confusion, chaos, panic - my work here is done.
More information about the kde-core-devel
mailing list