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

Unified Diff: runtime/bin/directory.cc

Issue 11318018: - Represent strings internally in UTF-16 format, this makes it (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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
Index: runtime/bin/directory.cc
===================================================================
--- runtime/bin/directory.cc (revision 14314)
+++ runtime/bin/directory.cc (working copy)
@@ -18,7 +18,7 @@
Dart_EnterScope();
char* current = Directory::Current();
if (current != NULL) {
- Dart_SetReturnValue(args, Dart_NewString(current));
+ Dart_SetReturnValue(args, DartUtils::NewString(current));
free(current);
}
Dart_ExitScope();
@@ -64,7 +64,7 @@
Dart_Handle path = Dart_GetNativeArgument(args, 0);
char* result = Directory::CreateTemp(DartUtils::GetStringValue(path));
if (result != NULL) {
- Dart_SetReturnValue(args, Dart_NewString(result));
+ Dart_SetReturnValue(args, DartUtils::NewString(result));
free(result);
} else {
Dart_Handle err = DartUtils::NewDartOSError();
« no previous file with comments | « runtime/bin/dbg_message.cc ('k') | runtime/bin/file.cc » ('j') | runtime/vm/dart_api_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698