зеркало из https://github.com/mozilla/pjs.git
Small optimization, no need to pass in a scheme string there. r+sr=darin
This commit is contained in:
Родитель
dcfa3ae7f2
Коммит
77dfbf008e
|
@ -326,8 +326,7 @@ nsJARURI::Resolve(const nsACString &relativePath, nsACString &result)
|
|||
{
|
||||
nsresult rv;
|
||||
|
||||
nsCAutoString scheme;
|
||||
rv = net_ExtractURLScheme(relativePath, nsnull, nsnull, &scheme);
|
||||
rv = net_ExtractURLScheme(relativePath, nsnull, nsnull, nsnull);
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
// then aSpec is absolute
|
||||
result = relativePath;
|
||||
|
|
|
@ -326,8 +326,7 @@ nsJARURI::Resolve(const nsACString &relativePath, nsACString &result)
|
|||
{
|
||||
nsresult rv;
|
||||
|
||||
nsCAutoString scheme;
|
||||
rv = net_ExtractURLScheme(relativePath, nsnull, nsnull, &scheme);
|
||||
rv = net_ExtractURLScheme(relativePath, nsnull, nsnull, nsnull);
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
// then aSpec is absolute
|
||||
result = relativePath;
|
||||
|
|
Загрузка…
Ссылка в новой задаче