From 8407bfb0cb9d8e58c40758b552c4eb71fe5f6415 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Fri, 14 Feb 2014 11:02:59 -0500 Subject: Changed manual sysData construction to use a helper function instead. --- checkbox.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'checkbox.go') 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, } } -- cgit v1.2.3