mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 16:32:59 +00:00
Fix for bug 11307. comparison between char * and XPIDLCString causing Compilation
problem in few unix platforms.
This commit is contained in:
parent
a9fcf214b2
commit
a3a21709ae
@ -1848,14 +1848,14 @@ static PRBool EqualBaseURLs(nsIURI* url1, nsIURI* url2)
|
||||
anchor1 = PL_strrchr(file1, '#');
|
||||
if (anchor1) {
|
||||
char * tmp = PL_strstr(file1, file2);
|
||||
if (tmp && tmp == file1) {
|
||||
if (tmp && (const char *)tmp == file1) {
|
||||
return PR_TRUE;
|
||||
}
|
||||
}
|
||||
anchor2 = PL_strrchr(file2, '#');
|
||||
if (anchor2) {
|
||||
char * tmp = PL_strstr(file2, file1);
|
||||
if (tmp && tmp == file2) {
|
||||
if (tmp && (const char *)tmp == file2) {
|
||||
return PR_TRUE;
|
||||
}
|
||||
}
|
||||
|
@ -1848,14 +1848,14 @@ static PRBool EqualBaseURLs(nsIURI* url1, nsIURI* url2)
|
||||
anchor1 = PL_strrchr(file1, '#');
|
||||
if (anchor1) {
|
||||
char * tmp = PL_strstr(file1, file2);
|
||||
if (tmp && tmp == file1) {
|
||||
if (tmp && (const char *)tmp == file1) {
|
||||
return PR_TRUE;
|
||||
}
|
||||
}
|
||||
anchor2 = PL_strrchr(file2, '#');
|
||||
if (anchor2) {
|
||||
char * tmp = PL_strstr(file2, file1);
|
||||
if (tmp && tmp == file2) {
|
||||
if (tmp && (const char *)tmp == file2) {
|
||||
return PR_TRUE;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user