Thomas Zander zander at kde.org
Thu Aug 2 12:27:33 BST 2007

as you may know; last monday kDebug() was changed to the qDebug() 
formatting. spaces between values and endl variables are not required 
anymore. (Thanks Thiago!)

This makes it a lot easier to write debugging again, but there is this 
nasty conversion period where we have duplicate spaces. And in the final 
release the kDebug() call will always print an linefeed so if you still 
do that in your software you'll get a duplicate.

In KOffice I ran the following perl over the sources which changes the 
majority of the kdebug calls in place.
Feel free to use it for your needs/projects

#!/usr/bin/perl -ni

while(s/(kDebug\s*\(.*)((\\n|\s+)\")/$1"/s) {}
print $_;

Have fun!
Thomas Zander
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070802/6b234292/attachment.sig>

More information about the kde-core-devel mailing list