Thierry Crozat 721db3eccb Fix an issue in String::ensureCapacity() when the string is shared. It could allocate two much memory as it was at least doubling the current capacity even when this one was sufficient.
It fixes a crash in GUI::Widget::cleanupHotkey() as the capacity of the string was doubled at each iteration once it was too long for the internal storage (only to add one character to the string). This ended up in a bad_alloc exception after a few iterations.

svn-id: r50050
2010-06-19 15:35:21 +00:00
..
2010-06-15 12:33:20 +00:00
2010-01-25 01:39:44 +00:00
2010-06-15 12:33:20 +00:00
2009-12-29 20:41:09 +00:00
2010-04-13 16:13:48 +00:00
2010-02-13 11:57:01 +00:00
2010-02-23 22:50:28 +00:00
2010-03-20 13:18:47 +00:00
2010-03-20 13:18:47 +00:00
2010-05-17 22:17:42 +00:00
2010-03-22 20:28:08 +00:00
2010-06-15 12:33:20 +00:00
2009-12-30 21:11:38 +00:00
2010-05-30 13:41:40 +00:00
2010-06-15 12:33:20 +00:00
2010-06-15 12:33:20 +00:00