On Wed, Mar 26, 2008 at 1:45 AM, Tom Jennings <[EMAIL PROTECTED]> wrote:
>
> So what's the old-style and what's the new? I don't know c++ for
> sh*t so the << construct makes no sense to me. I can replicate
> and interpolate if you give me what they ought to look like.
>
grep -i 'qdebug("' *.cpp # old printf style... not just for Hercules :P
qDebug("sendEvent(%e, m_pControlObjectLeftJog)",l);
grep -i 'qdebug()' *.cpp # new streaming style
bpmdetector.cpp: qDebug() << "BPM detection successful for"
<< pTrackInfoObject->getFilename();
....
Streaming style example:
#include <QDebug>
....
qDebug() << "string" << orJustAboutAnyVariable << "some more string if you
like" << "even more strings" << maybeAnotherVar << "etc, etc, etc";
--
__
--- == __/ t.O ==--
http://stacktrace.org/
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Mixxx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mixxx-devel