Changeset 212:ab60f3309436 for dwt/dnd/URLTransfer.d
- Timestamp:
- 05/04/08 18:12:38 (8 months ago)
- Files:
-
- dwt/dnd/URLTransfer.d (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
dwt/dnd/URLTransfer.d
r197 r212 46 46 47 47 static URLTransfer _instance; 48 static const char[]CFSTR_INETURL = "UniformResourceLocator"; //$NON-NLS-1$48 static const String CFSTR_INETURL = "UniformResourceLocator"; //$NON-NLS-1$ 49 49 static const int CFSTR_INETURLID; 50 50 … … 86 86 transferData.result = COM.E_FAIL; 87 87 // URL is stored as a null terminated byte array 88 char[]url = (cast(ArrayWrapperString2)object).array[0];88 String url = (cast(ArrayWrapperString2)object).array[0]; 89 89 int codePage = OS.GetACP(); 90 90 wchar[] chars = StrToWCHARs(codePage, url, true ); … … 148 148 } 149 149 150 protected char[][] getTypeNames(){150 protected String[] getTypeNames(){ 151 151 return [CFSTR_INETURL]; 152 152 } … … 155 155 if( auto s = cast(ArrayWrapperString2)object ){ 156 156 if( s.array.length is 0 ) return false; 157 char[][] strings = s.array;157 String[] strings = s.array; 158 158 if (strings[0] is null || strings[0].length is 0) return false; 159 159 //PORTING_FIXME: how to validata URL?
