summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/GraphicsModSystem
diff options
context:
space:
mode:
authorLioncash <mai.iam2048@gmail.com>2024-01-31 22:53:42 -0500
committerLioncash <mai.iam2048@gmail.com>2024-02-01 23:02:45 -0500
commit59211589b9999acd1f18460e39c13c3ddd683d55 (patch)
tree8b76129411c83c2ccbbba7ed038f32b381c850a1 /Source/Core/VideoCommon/GraphicsModSystem
parent353ceedb50701b487bf975433f89788d72489930 (diff)
CustomPipeline: Make use of emplace_back() in GlobalConflicts()
We can use the string_view arguments to directly construct strings inside of the global_result vector.
Diffstat (limited to 'Source/Core/VideoCommon/GraphicsModSystem')
-rw-r--r--Source/Core/VideoCommon/GraphicsModSystem/Runtime/CustomPipeline.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/GraphicsModSystem/Runtime/CustomPipeline.cpp b/Source/Core/VideoCommon/GraphicsModSystem/Runtime/CustomPipeline.cpp
index 549088042f..178719ba2d 100644
--- a/Source/Core/VideoCommon/GraphicsModSystem/Runtime/CustomPipeline.cpp
+++ b/Source/Core/VideoCommon/GraphicsModSystem/Runtime/CustomPipeline.cpp
@@ -101,7 +101,7 @@ std::vector<std::string> GlobalConflicts(std::string_view source)
{
i++;
}
- global_result.push_back(std::string{parse_identifier()});
+ global_result.emplace_back(parse_identifier());
parse_until_end_of_preprocessor();
}
else
@@ -121,11 +121,11 @@ std::vector<std::string> GlobalConflicts(std::string_view source)
// Since we handle equality, we can assume the identifier
// before '(' is a function definition
- global_result.push_back(std::string{last_identifier});
+ global_result.emplace_back(last_identifier);
}
else if (source[i] == '=')
{
- global_result.push_back(std::string{last_identifier});
+ global_result.emplace_back(last_identifier);
i++;
for (; i < source.size(); i++)
{