Mercurial > projects > dwt-win
comparison dwt/internal/win32/OS.d @ 291:9b075603b4fc
rm cast
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Thu, 21 Aug 2008 16:22:18 +0200 |
parents | 79a066e09568 |
children | 4e8e11ccfa60 |
comparison
equal
deleted
inserted
replaced
290:79a066e09568 | 291:9b075603b4fc |
---|---|
3704 } | 3704 } |
3705 return result; | 3705 return result; |
3706 } | 3706 } |
3707 | 3707 |
3708 public char[] WCHARsToStr(wchar[] string){ | 3708 public char[] WCHARsToStr(wchar[] string){ |
3709 return WCHARzToStr(cast(wchar*)string, string.length); | 3709 return WCHARzToStr(string.ptr, string.length); |
3710 } | 3710 } |
3711 | 3711 |
3712 public char[] WCHARzToStr(wchar* pString, int _length = -1) | 3712 public char[] WCHARzToStr(wchar* pString, int _length = -1) |
3713 { | 3713 { |
3714 if( pString is null ){ | 3714 if( pString is null ){ |