String conversion TagLib <-> Qt

Алексей Новичков qtloverr at
Sun Apr 24 08:38:30 CEST 2011

I've been using these macros according to TagLib sources:

#define QS(s) QString::fromUtf8(s.toCString(true))
#define TS(s) TagLib::String(s.toUtf8().constData(),TagLib::String::UTF8)

Is there any benefit (less memory consumption, faster conversion) to use the
following macros:

#define QS(s) QString::fromStdWString(s.toWString())
#define TS(s) TagLib::String(s.toStdWString())
-------------- next part --------------
An HTML attachment was scrubbed...

More information about the taglib-devel mailing list