summaryrefslogtreecommitdiff
path: root/redo/table_windows.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-08-01 18:30:07 -0400
committerPietro Gagliardi <[email protected]>2014-08-01 18:30:07 -0400
commitb31ce95b3315c2b6567ed96c3e424e5c2a5e67f4 (patch)
tree1c711cbd5a7e43eb340e783b21080ec948fe3544 /redo/table_windows.go
parent80828b8a7d2273d5f35b7114c8dfc10605fc5df8 (diff)
Fixed up more LPCWSTR->LPWSTR conversion, including some code simplification.
Diffstat (limited to 'redo/table_windows.go')
-rw-r--r--redo/table_windows.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/redo/table_windows.go b/redo/table_windows.go
index 1453407..97c2ce5 100644
--- a/redo/table_windows.go
+++ b/redo/table_windows.go
@@ -50,6 +50,5 @@ func tableGetCellText(data unsafe.Pointer, row C.int, col C.int, str *C.LPWSTR)
d := reflect.Indirect(reflect.ValueOf(t.data))
datum := d.Index(int(row)).Field(int(col))
s := fmt.Sprintf("%v", datum)
- // TODO get rid of conversions
- *str = C.LPWSTR(unsafe.Pointer(toUTF16(s)))
+ *str = toUTF16(s)
}