зеркало из https://github.com/mozilla/pjs.git
Fix for Solaris compiler warning from scc. r=vidur
This commit is contained in:
Родитель
3f36f6c437
Коммит
3782a44b72
|
@ -172,7 +172,7 @@ class nsSharedBufferList
|
|||
NewSingleAllocationBuffer( const PRUnichar* aData, PRUint32 aDataLength, PRUint32 aAdditionalCapacity = 1 )
|
||||
{
|
||||
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
|
||||
|
|
|
@ -172,7 +172,7 @@ class nsSharedBufferList
|
|||
NewSingleAllocationBuffer( const PRUnichar* aData, PRUint32 aDataLength, PRUint32 aAdditionalCapacity = 1 )
|
||||
{
|
||||
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
|
||||
|
|
|
@ -172,7 +172,7 @@ class nsSharedBufferList
|
|||
NewSingleAllocationBuffer( const PRUnichar* aData, PRUint32 aDataLength, PRUint32 aAdditionalCapacity = 1 )
|
||||
{
|
||||
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
|
||||
|
|
Загрузка…
Ссылка в новой задаче