diff options
| author | Pietro Gagliardi <[email protected]> | 2015-04-10 13:24:34 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2015-04-10 13:25:09 -0400 |
| commit | a38024c781524e326e3319c7b9f9f037ee01ba00 (patch) | |
| tree | 795e510a96dbafa38cc6c5166734ab91af1c3f27 /new/entry_darwin.m | |
| parent | 5bbaaeefe8b0ced1a2a16c50a2ebc3e4da9c432b (diff) | |
Eliminated direct use of strdup(); introduced uiDarwinNSStringToText() to do that work for us (and abort on failure).
Diffstat (limited to 'new/entry_darwin.m')
| -rw-r--r-- | new/entry_darwin.m | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/new/entry_darwin.m b/new/entry_darwin.m index 4a4047a..102168b 100644 --- a/new/entry_darwin.m +++ b/new/entry_darwin.m @@ -55,8 +55,7 @@ char *uiEntryText(uiControl *c) uiNSTextField *t; t = (uiNSTextField *) uiControlHandle(c); - // TODO wrap all strdup calls - return strdup(fromNSString([t stringValue])); + return uiDarwinNSStringToText([t stringValue]); } void uiEntrySetText(uiControl *c, const char *text) |
