summaryrefslogtreecommitdiff
path: root/src/video_core/gpu.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-07-22 15:36:30 -0400
committerLioncash <mathew1800@gmail.com>2018-07-22 15:36:32 -0400
commit26a157cd31676f419420078e7d99df90d9fbc910 (patch)
tree50a66cdeb25823c1f4b7bcf496bb8e92f08bd2e2 /src/video_core/gpu.cpp
parentcd46b267f5715c0900b409d7bcb97f6bc9a43d9e (diff)
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/video_core/gpu.cpp')
0 files changed, 0 insertions, 0 deletions