Avoid unneccessary duplication of string data.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Wed, 22 Feb 2012 08:13:29 +0000 (18:13 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 29 Feb 2012 04:21:36 +0000 (05:21 +0100)
commit7fa6fcd30cb4a688eae744cae4abf9f263c16616
tree860605cea43423860c040bc587fe9016e9033e8e
parentab727e6702e949c8f36649f16a81780746ebb2de
Avoid unneccessary duplication of string data.

Check for the existence of new line characters before trying to replace
them.  There's some redundancy if the characters are found but for
single line strings we avoid the detach in replace.

Change-Id: I48ccc614601a6f356b3d2e68f617e112c100bbdd
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
src/quick/items/qquicktext.cpp