diff options
| author | 2018-07-22 15:36:30 -0400 | |
|---|---|---|
| committer | 2018-07-22 15:36:32 -0400 | |
| commit | 26a157cd31676f419420078e7d99df90d9fbc910 (patch) | |
| tree | 50a66cdeb25823c1f4b7bcf496bb8e92f08bd2e2 /src/common/string_util.h | |
| parent | string_util: Remove unnecessary std::string instance in TabsToSpaces() (diff) | |
| download | yuzu-26a157cd31676f419420078e7d99df90d9fbc910.tar.gz yuzu-26a157cd31676f419420078e7d99df90d9fbc910.tar.xz yuzu-26a157cd31676f419420078e7d99df90d9fbc910.zip | |
string_util: Use emplace_back() in SplitString() instead of push_back()
This is equivalent to doing:
push_back(std::string(""));
which is likely not to cause issues, assuming a decent std::string
implementation with small-string optimizations implemented in its
design, however it's still a little unnecessary to copy that buffer
regardless. Instead, we can use emplace_back() to directly construct the
empty string within the std::vector instance, eliminating any possible
overhead from the copy.
Diffstat (limited to 'src/common/string_util.h')
0 files changed, 0 insertions, 0 deletions