1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

checker: make the "reference field must be initialised" warning more informative, fix clipboard (used by ui)

This commit is contained in:
Delyan Angelov
2022-10-02 16:24:15 +03:00
parent b158da398b
commit b83d0281e4
4 changed files with 6 additions and 6 deletions

View File

@ -140,12 +140,12 @@ enum AtomType {
[heap]
pub struct Clipboard {
display &C.Display
display &C.Display = unsafe { nil }
mut:
selection Atom // the selection atom
window Window
atoms []Atom
mutex &sync.Mutex
mutex &sync.Mutex = unsafe { nil }
text string // text data sent or received
got_text bool // used to confirm that we have got the text
is_owner bool // to save selection owner state