mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
builtin: x.vstring() instead of string(x) (#6102)
This commit is contained in:
parent
eba413853f
commit
36eae1c175
30 changed files with 143 additions and 72 deletions
|
@ -70,7 +70,7 @@ fn (mut cb Clipboard) get_text() string {
|
|||
#}
|
||||
|
||||
#utf8_clip = [ns_clip UTF8String];
|
||||
return string(utf8_clip)
|
||||
return unsafe { utf8_clip.vstring() }
|
||||
}
|
||||
|
||||
pub fn new_primary() &Clipboard {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue