зеркало из https://github.com/mozilla/gecko-dev.git
SUNWspro5.0 bustage fix: add "const" in a couple places to keep
the compiler happy. Patch from tomi.leppikangas@oulu.fi, r=tor
This commit is contained in:
Родитель
4b79a48748
Коммит
0b00ea3931
|
@ -1414,8 +1414,8 @@ NS_IMETHODIMP nsRegistry::UnescapeKey(PRUint8* escaped, PRUint32 termination, PR
|
|||
{
|
||||
if (e - b >= 2)
|
||||
{
|
||||
char* c1 = strchr(sEscapeKeyHex, *(b++));
|
||||
char* c2 = strchr(sEscapeKeyHex, *(b++));
|
||||
const char* c1 = strchr(sEscapeKeyHex, *(b++));
|
||||
const char* c2 = strchr(sEscapeKeyHex, *(b++));
|
||||
if (c1 != nsnull
|
||||
&& c2 != nsnull)
|
||||
{
|
||||
|
|
|
@ -1414,8 +1414,8 @@ NS_IMETHODIMP nsRegistry::UnescapeKey(PRUint8* escaped, PRUint32 termination, PR
|
|||
{
|
||||
if (e - b >= 2)
|
||||
{
|
||||
char* c1 = strchr(sEscapeKeyHex, *(b++));
|
||||
char* c2 = strchr(sEscapeKeyHex, *(b++));
|
||||
const char* c1 = strchr(sEscapeKeyHex, *(b++));
|
||||
const char* c2 = strchr(sEscapeKeyHex, *(b++));
|
||||
if (c1 != nsnull
|
||||
&& c2 != nsnull)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче