зеркало из https://github.com/mozilla/pjs.git
fix bustage
This commit is contained in:
Родитель
352a5619f2
Коммит
2c6c8263c2
|
@ -166,7 +166,7 @@ NS_IMETHODIMP nsSupportsStringImpl::SetDataWithLength(const PRUint32 aLength,
|
||||||
|
|
||||||
// otherwise, we'll have to allocate a new buffer, copy
|
// otherwise, we'll have to allocate a new buffer, copy
|
||||||
// into that new buffer, and adopt it
|
// into that new buffer, and adopt it
|
||||||
char* newData(nsnull);
|
char* newData = nsnull;
|
||||||
if (aData) {
|
if (aData) {
|
||||||
// allocate a new buffer
|
// allocate a new buffer
|
||||||
size_t size((aLength + 1) * sizeof(char));
|
size_t size((aLength + 1) * sizeof(char));
|
||||||
|
@ -275,7 +275,7 @@ NS_IMETHODIMP nsSupportsWStringImpl::SetDataWithLength(const PRUint32 aLength,
|
||||||
|
|
||||||
// otherwise, we'll have to allocate a new buffer, copy
|
// otherwise, we'll have to allocate a new buffer, copy
|
||||||
// into that new buffer, and adopt it
|
// into that new buffer, and adopt it
|
||||||
PRUnichar* newData(nsnull);
|
PRUnichar* newData = nsnull;
|
||||||
if (aData) {
|
if (aData) {
|
||||||
// allocate a new buffer
|
// allocate a new buffer
|
||||||
size_t size((aLength + 1) * sizeof(PRUnichar));
|
size_t size((aLength + 1) * sizeof(PRUnichar));
|
||||||
|
|
Загрузка…
Ссылка в новой задаче