mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1155765 - Get rid of gratuitous goto from nsWebBrowserPersist::MakeFilenameFromURI(). r=smaug
This commit is contained in:
parent
18df16548c
commit
76a68d3ce7
@ -2087,7 +2087,8 @@ nsWebBrowserPersist::MakeFilenameFromURI(nsIURI *aURI, nsString &aFilename)
|
||||
if (mPersistFlags & PERSIST_FLAGS_DONT_CHANGE_FILENAMES)
|
||||
{
|
||||
fileName.AssignWithConversion(NS_UnescapeURL(nameFromURL).get());
|
||||
goto end;
|
||||
aFilename = fileName;
|
||||
return NS_OK;
|
||||
}
|
||||
if (!nameFromURL.IsEmpty())
|
||||
{
|
||||
@ -2127,7 +2128,6 @@ nsWebBrowserPersist::MakeFilenameFromURI(nsIURI *aURI, nsString &aFilename)
|
||||
fileName.Append(char16_t('a')); // 'a' is for arbitrary
|
||||
}
|
||||
|
||||
end:
|
||||
aFilename = fileName;
|
||||
return NS_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user