Index: tools/gn/ninja_copy_target_writer.cc |
diff --git a/tools/gn/ninja_copy_target_writer.cc b/tools/gn/ninja_copy_target_writer.cc |
index 9ab88e435cbaaba5453f9506ba71a3a9f9739739..4f8534f8edfa3cd2f5208ad18678d9a700510985 100644 |
--- a/tools/gn/ninja_copy_target_writer.cc |
+++ b/tools/gn/ninja_copy_target_writer.cc |
@@ -30,7 +30,7 @@ void NinjaCopyTargetWriter::Run() { |
// Make the output file from the template. |
std::vector<std::string> template_result; |
- output_template.ApplyString(input_file.value(), &template_result); |
+ output_template.Apply(input_file, &template_result); |
CHECK(template_result.size() == 1); |
OutputFile output_file(template_result[0]); |