Make a string parameter const ref
authorDavid Neto <dneto@google.com>
Tue, 19 Dec 2017 18:52:23 +0000 (13:52 -0500)
committerDavid Neto <dneto@google.com>
Tue, 19 Dec 2017 23:42:35 +0000 (18:42 -0500)
test/val/val_primitives_test.cpp

index 6cccfa1..5ef4e63 100644 (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