зеркало из https://github.com/mozilla/pjs.git
Bug 225120 Remove compiler warnings
patch by arne.anka@stupido.com r=dbaron sr=bz
This commit is contained in:
Родитель
d511e38761
Коммит
12b256b648
|
@ -333,8 +333,6 @@ nsXULContentUtils::MakeElementURI(nsIDocument* aDocument, const nsAString& aElem
|
|||
CopyUTF16toUTF8(aElementID, aURI);
|
||||
}
|
||||
else {
|
||||
nsresult rv;
|
||||
|
||||
nsIURI *docURL = aDocument->GetBaseURL();
|
||||
|
||||
// XXX Urgh. This is so broken; I'd really just like to use
|
||||
|
@ -351,7 +349,7 @@ nsXULContentUtils::MakeElementURI(nsIDocument* aDocument, const nsAString& aElem
|
|||
AppendUTF16toUTF8(aElementID, aURI);
|
||||
#else
|
||||
nsXPIDLCString spec;
|
||||
rv = NS_MakeAbsoluteURI(nsCAutoString(aElementID), docURL, getter_Copies(spec));
|
||||
nsresult rv = NS_MakeAbsoluteURI(nsCAutoString(aElementID), docURL, getter_Copies(spec));
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
aURI = spec;
|
||||
}
|
||||
|
@ -390,8 +388,6 @@ nsXULContentUtils::MakeElementID(nsIDocument* aDocument, const nsAString& aURI,
|
|||
{
|
||||
// Convert a URI into an element ID that can be accessed from the
|
||||
// DOM APIs.
|
||||
nsresult rv;
|
||||
|
||||
nsCAutoString spec;
|
||||
aDocument->GetBaseURL()->GetSpec(spec);
|
||||
|
||||
|
|
|
@ -1381,8 +1381,6 @@ nsPresContext::LoadImage(nsIURI* aURL,
|
|||
{
|
||||
// look and see if we have a loader for the target frame.
|
||||
|
||||
nsresult rv;
|
||||
|
||||
nsVoidKey key(aTargetFrame);
|
||||
nsImageLoader *loader = NS_REINTERPRET_CAST(nsImageLoader*, mImageLoaders.Get(&key)); // addrefs
|
||||
|
||||
|
|
|
@ -1381,8 +1381,6 @@ nsPresContext::LoadImage(nsIURI* aURL,
|
|||
{
|
||||
// look and see if we have a loader for the target frame.
|
||||
|
||||
nsresult rv;
|
||||
|
||||
nsVoidKey key(aTargetFrame);
|
||||
nsImageLoader *loader = NS_REINTERPRET_CAST(nsImageLoader*, mImageLoaders.Get(&key)); // addrefs
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче