kdebug

Andreas Pakulat apaku at gmx.de
Thu Aug 2 22:50:13 BST 2007


On 02.08.07 07:17:15, Aaron J. Seigo wrote:
> On Thursday 02 August 2007, Thomas Zander wrote:
> > while(s/(kDebug\s*\(.*)((\\n|\s+)\")/$1"/s) {}
> 
> personally i changed this line to:
> 
> while(s/(kDebug\s*\(.*)((\\n|\s+)\" \" <<)/$1/s) {}
> 
> so that it only catches '" " <<' ... may not work great if you aren't 
> consistent in your whitespace usage, but ... worked for me =) has the benefit 
> of not turning 'kDebug() << "foo"' into 'kDebug() <<"foo"'

Hmm, somehow that change doesn't work here:
-    kDebug(9024) << k_funcinfo << "Is " << projectfile << " a dir?" << fi.isDir() << endl;
+    kDebug(9024) << k_funcinfo << "Is " << projectfile << " a dir?" << fi.isDir();

And unfortunately I'm bad at perl :(

Andreas

-- 
Everything will be just tickety-boo today.




More information about the kde-core-devel mailing list