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

Unified Diff: runtime/vm/uri.cc

Issue 2037823002: Fix non-mac builds by adding "const". (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 months 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/uri.cc
diff --git a/runtime/vm/uri.cc b/runtime/vm/uri.cc
index 48b11250f06f8c5cf44dbb87ee9dc5d77d71e22e..b222c5c092a6a3b807de35194b74399694cf8447 100644
--- a/runtime/vm/uri.cc
+++ b/runtime/vm/uri.cc
@@ -370,7 +370,7 @@ static const char* MergePaths(const char* base_path, const char* ref_path) {
}
// We need to find the last '/' in base_path.
- char* last_slash = strrchr(base_path, '/');
+ const char* last_slash = strrchr(base_path, '/');
if (last_slash == NULL) {
// There is no slash in the base_path. Return the ref_path unchanged.
return ref_path;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698