Index: runtime/vm/timeline.cc |
diff --git a/runtime/vm/timeline.cc b/runtime/vm/timeline.cc |
index f4c62a84991d78e01de164447c5d1a4167fec41c..7e9ba2d179c9ec86ad6615ce49555b26a69e4eb9 100644 |
--- a/runtime/vm/timeline.cc |
+++ b/runtime/vm/timeline.cc |
@@ -1180,7 +1180,7 @@ void TimelineEventRecorder::WriteTo(const char* directory) { |
// Steal output from JSONStream. |
char* output = NULL; |
intptr_t output_length = 0; |
- js.Steal(const_cast<const char**>(&output), &output_length); |
+ js.Steal(&output, &output_length); |
(*file_write)(output, output_length, file); |
// Free the stolen output. |
free(output); |