[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Re: Kivio: char string to a QString
From:       Thomas Zander <zander () kde ! org>
Date:       2007-02-20 10:22:10
Message-ID: 200702201122.14901.zander () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Tuesday 20 February 2007 00:46, Jon de Andrés wrote:
> Hi!
> We can read in
> http://www.englishbreakfastnetwork.org/krazy/reports/bundled-apps/koffice/k
>ivio/index.html : "Adding single characters to a QString is faster if the
> characters are QChars and not QStrings. For example: QString path = oldpath
> + "/" + base is better written as QString path = oldpath + '/' + base" Is
> that correct?

Partly;

its better to use 'x' instead of "x" because 'x' maps to the native char 
and "x" maps to a QString.
See the QString api docs for operator+=  there is a (char) version there.

Thanks for the patch :)
-- 
Thomas Zander

[Attachment #5 (application/pgp-signature)]

_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic