Refactor the URL recoder a little
authorThiago Macieira <thiago.macieira@intel.com>
Thu, 8 Sep 2011 15:40:36 +0000 (17:40 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 29 Mar 2012 23:19:59 +0000 (01:19 +0200)
commitb75aa795feb476111a0706c52a8ebea8dff7640d
tree82a9d6c8daa162e903a62153201fc868ec6b0501
parent73e16b15a6b3dc9838763407665d5797ba5618b2
Refactor the URL recoder a little

Change it to operate on QChar pointers, which gains a little in
performance. This also avoids unnecessary detaching in the QString
source.

In addition, make the output be appended to an existing QString. This
will be useful later when we're reconstructing a URL from its
components.

Change-Id: I7e2f64028277637bd329af5f98001ace253a50c7
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
src/corelib/io/qurlrecode.cpp
tests/auto/corelib/io/qurlinternal/tst_qurlinternal.cpp