Fix for Solaris compiler warning from scc. r=vidur

This commit is contained in:
vidur%netscape.com 2000-12-12 23:02:01 +00:00
Родитель 3f36f6c437
Коммит 3782a44b72
3 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -172,7 +172,7 @@ class nsSharedBufferList
NewSingleAllocationBuffer( const PRUnichar* aData, PRUint32 aDataLength, PRUint32 aAdditionalCapacity = 1 ) NewSingleAllocationBuffer( const PRUnichar* aData, PRUint32 aDataLength, PRUint32 aAdditionalCapacity = 1 )
{ {
typedef Buffer* Buffer_ptr; typedef Buffer* Buffer_ptr;
return NS_AllocateContiguousHandleWithData(Buffer_ptr(0), nsLiteralString(aData, aDataLength), aAdditionalCapacity); return NS_AllocateContiguousHandleWithData(Buffer_ptr(0), NS_READABLE_CAST(PRUnichar, nsLiteralString(aData, aDataLength)), aAdditionalCapacity);
} }
static static

Просмотреть файл

@ -172,7 +172,7 @@ class nsSharedBufferList
NewSingleAllocationBuffer( const PRUnichar* aData, PRUint32 aDataLength, PRUint32 aAdditionalCapacity = 1 ) NewSingleAllocationBuffer( const PRUnichar* aData, PRUint32 aDataLength, PRUint32 aAdditionalCapacity = 1 )
{ {
typedef Buffer* Buffer_ptr; typedef Buffer* Buffer_ptr;
return NS_AllocateContiguousHandleWithData(Buffer_ptr(0), nsLiteralString(aData, aDataLength), aAdditionalCapacity); return NS_AllocateContiguousHandleWithData(Buffer_ptr(0), NS_READABLE_CAST(PRUnichar, nsLiteralString(aData, aDataLength)), aAdditionalCapacity);
} }
static static

Просмотреть файл

@ -172,7 +172,7 @@ class nsSharedBufferList
NewSingleAllocationBuffer( const PRUnichar* aData, PRUint32 aDataLength, PRUint32 aAdditionalCapacity = 1 ) NewSingleAllocationBuffer( const PRUnichar* aData, PRUint32 aDataLength, PRUint32 aAdditionalCapacity = 1 )
{ {
typedef Buffer* Buffer_ptr; typedef Buffer* Buffer_ptr;
return NS_AllocateContiguousHandleWithData(Buffer_ptr(0), nsLiteralString(aData, aDataLength), aAdditionalCapacity); return NS_AllocateContiguousHandleWithData(Buffer_ptr(0), NS_READABLE_CAST(PRUnichar, nsLiteralString(aData, aDataLength)), aAdditionalCapacity);
} }
static static