Make a string parameter const ref

This commit is contained in:
David Neto 2017-12-19 13:52:23 -05:00
parent 88409b7262
commit c9a881ecc6

View File

@ -68,7 +68,7 @@ OpFunctionEnd)";
// function with the given body, but missing the final return and
// function-end. The result is of the form where it can be used in the
// |body| argument to GenerateShaderCode.
std::string CallAndCallee(std::string body) {
std::string CallAndCallee(const std::string& body) {
std::ostringstream ss;
ss << R"(
%dummy = OpFunctionCall %void %foo