Mercurial > projects > dwt-mac
diff dwt/widgets/Link.d @ 77:990305995bc6
Ported dwt.widgets.Spinner
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Wed, 24 Dec 2008 13:06:45 +0100 |
parents | 3607217555f2 |
children | c7f7f4d7091a |
line wrap: on
line diff
--- a/dwt/widgets/Link.d Wed Dec 24 12:32:20 2008 +0100 +++ b/dwt/widgets/Link.d Wed Dec 24 13:06:45 2008 +0100 @@ -39,7 +39,6 @@ import dwt.widgets.Composite; import dwt.widgets.Control; -alias tango.text.Text.Text!(char) Text8; /** * Instances of this class represent a selectable @@ -262,7 +261,7 @@ offsets = new Point [length_ / 4]; ids = new String [length_ / 4]; mnemonics = new int [length_ / 4 + 1]; - Text8 result = new Text8 (); + StringBuffer result = new StringBuffer (); char [] buffer = new char [length_]; string.getChars (0, string.length (), buffer, 0); int index = 0, state = 0, linkIndex = 0; @@ -388,7 +387,7 @@ return result.toString (); } -int parseMnemonics (char[] buffer, int start, int end, Text8 result) { +int parseMnemonics (char[] buffer, int start, int end, StringBuffer result) { int mnemonic = -1, index = start; while (index < end) { if (buffer [index] is '&') {