Small optimization, no need to pass in a scheme string there. r+sr=darin

This commit is contained in:
jaggernaut%netscape.com 2003-07-09 01:35:35 +00:00
Родитель dcfa3ae7f2
Коммит 77dfbf008e
2 изменённых файлов: 2 добавлений и 4 удалений

Просмотреть файл

@ -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;