Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(316)

Unified Diff: runtime/vm/parser.cc

Issue 1526123002: VM: Const-correctness fixes. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/intermediate_language.cc ('k') | runtime/vm/profiler_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/parser.cc
diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc
index 89cf98887ea8f4372cb8eef0662756d43486e83e..37cdf87ec497d9f777cd9215fc5492905be4dc16 100644
--- a/runtime/vm/parser.cc
+++ b/runtime/vm/parser.cc
@@ -458,10 +458,7 @@ void Parser::ParseCompilationUnit(const Library& library,
"CompileTopLevel");
if (tds.enabled()) {
tds.SetNumArguments(1);
- tds.CopyArgument(
- 0,
- "script",
- const_cast<char*>(String::Handle(script.url()).ToCString()));
+ tds.CopyArgument(0, "script", String::Handle(script.url()).ToCString());
}
Parser parser(script, library, 0);
« no previous file with comments | « runtime/vm/intermediate_language.cc ('k') | runtime/vm/profiler_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698