Skip to content

Commit 43abc4f

Browse files
committed
replace builtin__ctovstring with builtin_tos_clone since #25264 is now merged
1 parent 972037a commit 43abc4f

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎src/ui_darwin.m‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ void vui_wait_events() {
3636
}
3737

3838
string vui_bundle_path() {
39-
return builtin__ctovstring([[[NSBundle mainBundle] bundlePath] UTF8String]);
39+
return builtin__tos_clone([[[NSBundle mainBundle] bundlePath] UTF8String]);
4040
}
4141

4242
void vui_minimize_window(void* window) {

‎webview/webview_darwin.m‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ - (void)userContentController:(WKUserContentController *)userContentController d
3737
// [_ObjcLog logWithFile:"[WKWebView]" function:[message.name UTF8String] line:0 color:[UIColor whiteColor] message:message.body];
3838
puts(".m received script message");
3939
NSLog(message.body);
40-
g_vui_webview_js_val = builtin__ctovstring([message.body UTF8String]);
41-
// *resultt = builtin__ctovstring([result UTF8String]);
40+
g_vui_webview_js_val = builtin_tos_clone([message.body UTF8String]);
41+
// *resultt = builtin_tos_clone([result UTF8String]);
4242
}
4343
@end
4444

@@ -144,8 +144,8 @@ void darwin_webview_eval_js(void *web_view_, string js) { //, string *resultt) {
144144
NSLog(@"eval js result = %@", result);
145145
// finished = YES;
146146
if (result != nil&& result != [NSNull null] ) {
147-
// *resultt = builtin__ctovstring([result UTF8String]);
148-
g_vui_webview_js_val = builtin__ctovstring([result UTF8String]);
147+
// *resultt = builtin_tos_clone([result UTF8String]);
148+
g_vui_webview_js_val = builtin_tos_clone([result UTF8String]);
149149
}
150150
}];
151151

0 commit comments

Comments
 (0)