List Info

Thread: Check for single char QStrings better written as a QChar




Check for single char QStrings better written as a QChar
user name
2008-03-29 19:30:35
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. Same
holds for arguments to QString::startsWith() and
QString::endsWith()

_______________________________________________
KDevelop-devel mailing list
KDevelop-develkdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinf
o/kdevelop-devel

  
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )