Simple optimisation in toLocal8Bit(): call codecForLocale once only
authorThiago Macieira <thiago.macieira@intel.com>
Wed, 15 Aug 2012 16:15:06 +0000 (18:15 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 22 Aug 2012 22:19:25 +0000 (00:19 +0200)
commita3e563c0913e5bc1607ea7f60187591ec7eabe50
treebafef25438b1e6707e6bca861f9dc130f22f18e9
parent12491f35bbea7008b15fb0ba0ee7ea5bf6eb6b6c
Simple optimisation in toLocal8Bit(): call codecForLocale once only

The function is only slow the first time we call it, but there's no
reason we can't do this simple optimisation anyway.

Change-Id: Icacbbeb340838b32f5278b76d1860ad22dc9f7b7
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
src/corelib/tools/qstring.cpp