зеркало из https://github.com/mozilla/pjs.git
Added missing "const" that was allowing internal pointer to Unicode
string tobe returned as a non-const value
This commit is contained in:
Родитель
3daac89caa
Коммит
7d913dc65b
|
@ -350,7 +350,7 @@ const PRUnichar* nsString::GetUnicode(void) const{
|
|||
return mStr;
|
||||
}
|
||||
|
||||
nsString::operator PRUnichar*() const{
|
||||
nsString::operator const PRUnichar*() const{
|
||||
return mStr;
|
||||
}
|
||||
|
||||
|
|
|
@ -136,7 +136,7 @@ const PRUnichar* GetUnicode(void) const;
|
|||
* @param
|
||||
* @return
|
||||
*/
|
||||
operator PRUnichar*() const;
|
||||
operator const PRUnichar*() const;
|
||||
|
||||
/**
|
||||
* Retrieve unicode char at given index
|
||||
|
|
|
@ -350,7 +350,7 @@ const PRUnichar* nsString::GetUnicode(void) const{
|
|||
return mStr;
|
||||
}
|
||||
|
||||
nsString::operator PRUnichar*() const{
|
||||
nsString::operator const PRUnichar*() const{
|
||||
return mStr;
|
||||
}
|
||||
|
||||
|
|
|
@ -136,7 +136,7 @@ const PRUnichar* GetUnicode(void) const;
|
|||
* @param
|
||||
* @return
|
||||
*/
|
||||
operator PRUnichar*() const;
|
||||
operator const PRUnichar*() const;
|
||||
|
||||
/**
|
||||
* Retrieve unicode char at given index
|
||||
|
|
|
@ -350,7 +350,7 @@ const PRUnichar* nsString::GetUnicode(void) const{
|
|||
return mStr;
|
||||
}
|
||||
|
||||
nsString::operator PRUnichar*() const{
|
||||
nsString::operator const PRUnichar*() const{
|
||||
return mStr;
|
||||
}
|
||||
|
||||
|
|
|
@ -136,7 +136,7 @@ const PRUnichar* GetUnicode(void) const;
|
|||
* @param
|
||||
* @return
|
||||
*/
|
||||
operator PRUnichar*() const;
|
||||
operator const PRUnichar*() const;
|
||||
|
||||
/**
|
||||
* Retrieve unicode char at given index
|
||||
|
|
|
@ -350,7 +350,7 @@ const PRUnichar* nsString::GetUnicode(void) const{
|
|||
return mStr;
|
||||
}
|
||||
|
||||
nsString::operator PRUnichar*() const{
|
||||
nsString::operator const PRUnichar*() const{
|
||||
return mStr;
|
||||
}
|
||||
|
||||
|
|
|
@ -136,7 +136,7 @@ const PRUnichar* GetUnicode(void) const;
|
|||
* @param
|
||||
* @return
|
||||
*/
|
||||
operator PRUnichar*() const;
|
||||
operator const PRUnichar*() const;
|
||||
|
||||
/**
|
||||
* Retrieve unicode char at given index
|
||||
|
|
Загрузка…
Ссылка в новой задаче