Revision 881299bec2a9d80536e306c76efc0da2b43a76b9 authored by Filip Roséen on 04 March 2016, 16:04:09 UTC, committed by Jean-Baptiste Kempf on 05 March 2016, 21:14:03 UTC
There really is no need to allocate memory for a temporary buffer, copy
the data to this buffer, and then use the buffer to initialize a
std::string, before freeing the buffer.

One of the constructors of std::string can handle the above for us.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
1 parent d55cd99
History
File Mode Size
src
tarballs
.gitignore -rw-r--r-- 29 bytes
bootstrap -rwxr-xr-x 8.6 KB

back to top