diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-08-08 19:54:11 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-08-08 19:54:11 +0800 |
commit | d0bf32aad9e7f27f50ffc45abe0e1e0cb0a433ad (patch) | |
tree | 7ad675294866c78ab859941928b876c421c185d3 /embed/mozilla/mozilla-embed-single.cpp | |
parent | 1bb4b10ce6a3e857b14e0637e17203960dcc9543 (diff) | |
download | gsoc2013-epiphany-d0bf32aad9e7f27f50ffc45abe0e1e0cb0a433ad.tar gsoc2013-epiphany-d0bf32aad9e7f27f50ffc45abe0e1e0cb0a433ad.tar.gz gsoc2013-epiphany-d0bf32aad9e7f27f50ffc45abe0e1e0cb0a433ad.tar.bz2 gsoc2013-epiphany-d0bf32aad9e7f27f50ffc45abe0e1e0cb0a433ad.tar.lz gsoc2013-epiphany-d0bf32aad9e7f27f50ffc45abe0e1e0cb0a433ad.tar.xz gsoc2013-epiphany-d0bf32aad9e7f27f50ffc45abe0e1e0cb0a433ad.tar.zst gsoc2013-epiphany-d0bf32aad9e7f27f50ffc45abe0e1e0cb0a433ad.zip |
Consistent naming for nsresult vars. Since 'rv' had the majority, 'rv' it
2004-08-08 Christian Persch <chpe@cvs.gnome.org>
* embed/mozilla/EphyBrowser.cpp:
* embed/mozilla/EphySingle.cpp:
* embed/mozilla/EventContext.cpp:
* embed/mozilla/MozillaPrivate.cpp:
* embed/mozilla/mozilla-embed-single.cpp:
* embed/mozilla/mozilla-embed.cpp:
Consistent naming for nsresult vars. Since 'rv' had the majority,
'rv' it is.
Diffstat (limited to 'embed/mozilla/mozilla-embed-single.cpp')
-rw-r--r-- | embed/mozilla/mozilla-embed-single.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/embed/mozilla/mozilla-embed-single.cpp b/embed/mozilla/mozilla-embed-single.cpp index ba379377e..b0ffffeb3 100644 --- a/embed/mozilla/mozilla-embed-single.cpp +++ b/embed/mozilla/mozilla-embed-single.cpp @@ -381,18 +381,18 @@ have_gnome_url_handler (const gchar *protocol) static nsresult getUILang (nsAString& aUILang) { - nsresult result; + nsresult rv; - nsCOMPtr<nsILocaleService> localeService = do_GetService (NS_LOCALESERVICE_CONTRACTID, &result); - if (NS_FAILED (result) || !localeService) + nsCOMPtr<nsILocaleService> localeService = do_GetService (NS_LOCALESERVICE_CONTRACTID); + if (!localeService) { g_warning ("Could not get locale service!\n"); return NS_ERROR_FAILURE; } - result = localeService->GetLocaleComponentForUserAgent (aUILang); + rv = localeService->GetLocaleComponentForUserAgent (aUILang); - if (NS_FAILED (result)) + if (NS_FAILED (rv)) { g_warning ("Could not determine locale!\n"); return NS_ERROR_FAILURE; @@ -404,22 +404,22 @@ getUILang (nsAString& aUILang) static nsresult mozilla_init_chrome (void) { - nsresult result; + nsresult rv; nsEmbedString uiLang; nsCOMPtr<nsIXULChromeRegistry> chromeRegistry = do_GetService (NS_CHROMEREGISTRY_CONTRACTID); NS_ENSURE_TRUE (chromeRegistry, NS_ERROR_FAILURE); // Set skin to 'classic' so we get native scrollbars. - result = chromeRegistry->SelectSkin (nsEmbedCString("classic/1.0"), PR_FALSE); - NS_ENSURE_SUCCESS (result, NS_ERROR_FAILURE); + rv = chromeRegistry->SelectSkin (nsEmbedCString("classic/1.0"), PR_FALSE); + NS_ENSURE_SUCCESS (rv, NS_ERROR_FAILURE); // set locale - result = chromeRegistry->SetRuntimeProvider(PR_TRUE); - NS_ENSURE_SUCCESS (result, NS_ERROR_FAILURE); + rv = chromeRegistry->SetRuntimeProvider(PR_TRUE); + NS_ENSURE_SUCCESS (rv, NS_ERROR_FAILURE); - result = getUILang(uiLang); - NS_ENSURE_SUCCESS (result, NS_ERROR_FAILURE); + rv = getUILang(uiLang); + NS_ENSURE_SUCCESS (rv, NS_ERROR_FAILURE); nsEmbedCString cUILang; NS_UTF16ToCString (uiLang, NS_CSTRING_ENCODING_UTF8, cUILang); @@ -628,7 +628,7 @@ impl_get_font_list (EphyEmbedSingle *shell, static GList * impl_list_cookies (EphyCookieManager *manager) { - nsresult result; + nsresult rv; GList *cookies = NULL; nsCOMPtr<nsICookieManager> cookieManager = @@ -645,8 +645,8 @@ impl_list_cookies (EphyCookieManager *manager) cookieEnumerator->HasMoreElements(&enumResult)) { nsCOMPtr<nsICookie> keks; - result = cookieEnumerator->GetNext (getter_AddRefs(keks)); - if (NS_FAILED (result) || !keks) continue; + rv = cookieEnumerator->GetNext (getter_AddRefs(keks)); + if (NS_FAILED (rv) || !keks) continue; EphyCookie *cookie = mozilla_cookie_to_ephy_cookie (keks); if (!cookie) continue; |