[Development] QString::arg()

Mohsen Akhlaghi mohsen at madagon.com
Sun Feb 17 21:23:35 CET 2013


QString::arg() must have Escapes cached. 

Currently it iterates with every call that doesn't seem too perfect. The
better solution is to have the iteration once at the first call after the
value change so further calls won't need to  iterate again. 

Since the maximum number  of arguments for a single pass is 9, it's not
actually enough in action and many calls to arg() with cached method would
be the best. In this method the cache won't be filled before the first time
arg() is called. So we won't have problems memory wise.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20130217/2dc05cbc/attachment.html>


More information about the Development mailing list