Mercurial > projects > dwt-mac
comparison dwt/browser/MozillaDelegate.d @ 7:e831403a80a9
Add 'cast' to casts
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 27 Aug 2008 14:30:35 +0200 |
parents | 380af2bdd8e5 |
children | 5b53d338c709 |
comparison
equal
deleted
inserted
replaced
6:b903c16b6f48 | 7:e831403a80a9 |
---|---|
64 // if (cfString !is 0) { | 64 // if (cfString !is 0) { |
65 // CFRange range = new CFRange (); | 65 // CFRange range = new CFRange (); |
66 // range.length = chars.length; | 66 // range.length = chars.length; |
67 // int encoding = OS.CFStringGetSystemEncoding (); | 67 // int encoding = OS.CFStringGetSystemEncoding (); |
68 // int[] size = new int[1]; | 68 // int[] size = new int[1]; |
69 // int numChars = OS.CFStringGetBytes (cfString, range, encoding, (byte)'?', true, null, 0, size); | 69 // int numChars = OS.CFStringGetBytes (cfString, range, encoding, cast(byte)'?', true, null, 0, size); |
70 // buffer = new byte [size[0] + (terminate ? 1 : 0)]; | 70 // buffer = new byte [size[0] + (terminate ? 1 : 0)]; |
71 // if (numChars !is 0) { | 71 // if (numChars !is 0) { |
72 // numChars = OS.CFStringGetBytes (cfString, range, encoding, (byte)'?', true, buffer, size[0], size); | 72 // numChars = OS.CFStringGetBytes (cfString, range, encoding, cast(byte)'?', true, buffer, size[0], size); |
73 // } | 73 // } |
74 // OS.CFRelease (cfString); | 74 // OS.CFRelease (cfString); |
75 // } | 75 // } |
76 // return buffer; | 76 // return buffer; |
77 if (terminate) | 77 if (terminate) |