]> git.saurik.com Git - wxWidgets.git/commit
Small optimization of wxFFile::ReadAll(): avoid extra string copy.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 30 Sep 2012 22:28:31 +0000 (22:28 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 30 Sep 2012 22:28:31 +0000 (22:28 +0000)
commit3bc69d48db7cd54db9c67dedfe82cc13890bcf71
tree0eeca6bf40abe092415ed692835b62cc5093a6b1
parent614108e211ecb6e11d32b646a91437061116b518
Small optimization of wxFFile::ReadAll(): avoid extra string copy.

Use swap() to move the newly created string into its destination instead of
copying it there. This can be relatively important as the string represents an
entire file contents here and so could be quite long.

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