On quarta-feira, 13 de junho de 2012 18.44.41, [email protected] wrote: > > A QStringRef points to an existing QString. Therefore, if we take a > > QString that is pointing to a substring of an existing QString, the > > d-ptr is already allocated. The new QString would be as cheap as the > > current QStringRef. > How does that work? Where do you store the substring's offset and length > data?
In the QString.
You might have missed the other thread where we're discussing moving the data
pointer and length to the main class in QString, QByteArray and QVector.
I've begun doing that work, but turns out that there's a LOT of code to get
ported, starting with moc.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
Intel Sweden AB - Registration Number: 556189-6027
Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Development mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/development
