diff options
| author | Pietro Gagliardi <[email protected]> | 2014-02-14 11:02:59 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-02-14 11:02:59 -0500 |
| commit | 8407bfb0cb9d8e58c40758b552c4eb71fe5f6415 (patch) | |
| tree | 7c81722daf4426e49ccdd49dc0ff22a39fa96fad /checkbox.go | |
| parent | 9a4e7bf5eb74ffcef8885f27af9482dfc467542c (diff) | |
Changed manual sysData construction to use a helper function instead.
Diffstat (limited to 'checkbox.go')
| -rw-r--r-- | checkbox.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/checkbox.go b/checkbox.go index 89768ef..fc5c197 100644 --- a/checkbox.go +++ b/checkbox.go @@ -20,11 +20,7 @@ type Checkbox struct { // NewCheckbox creates a new checkbox with the specified text. func NewCheckbox(text string) (c *Checkbox) { return &Checkbox{ - sysData: &sysData{ - cSysData: cSysData{ - ctype: c_checkbox, - }, - }, + sysData: mksysdata(c_checkbox), initText: text, } } |
