]> git.saurik.com Git - wxWidgets.git/commit
Avoid needless second string conversion when adding files to memory FS.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 18 Jan 2012 19:42:58 +0000 (19:42 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 18 Jan 2012 19:42:58 +0000 (19:42 +0000)
commite1db4c1290af151b0d85c4dcad7cbb2414e0d474
tree79829809a453abd3c07daf0b64f312f69a19a207
parentce45dbe3c85292676e54e3d4a78da876dc25b042
Avoid needless second string conversion when adding files to memory FS.

Create the buffer holding the result of conversion instead of converting
twice, once to only get the length of the result and the second time to get
the data.

Closes #13877.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70392 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/fs_mem.cpp