Code review comment for lp:~unity-api-team/hud/lp-1288025

Revision history for this message
Michi Henning (michihenning) wrote :

> > > Also, just so you know, you can convert a QString to a C string using the
> > > following:
> > >
> > > string.toUtf8().constData()
> >
> > Awesome! How bloody obvious. Silly me for not seeing that immediately ;-)
>
> I think it all comes from them trying supporting UTF across platforms. You
> need a temporary object representing just some bytes.

Yeah. I was commenting on the really awkward and counter-intuitive API. Would be nice have something like string.c_str() or similar.

« Back to merge proposal