From c237984e3427710cbd7413ee5f0120b7562ebf11 Mon Sep 17 00:00:00 2001 From: Eugen Sawin Date: Wed, 15 Feb 2017 23:06:25 +0100 Subject: [PATCH] Bug 1322576 - [4.0] Fix some coding style issues. r=smaug --- docshell/base/nsILoadContext.idl | 15 +++++++++------ uriloader/prefetch/OfflineCacheUpdateParent.cpp | 14 +++++++------- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/docshell/base/nsILoadContext.idl b/docshell/base/nsILoadContext.idl index b12b865e4814..98e8a2119171 100644 --- a/docshell/base/nsILoadContext.idl +++ b/docshell/base/nsILoadContext.idl @@ -88,20 +88,23 @@ interface nsILoadContext : nsISupports /** * De-XPCOMed getter to make call-sites cleaner. */ - bool UsePrivateBrowsing() { - bool usingPB; + bool UsePrivateBrowsing() + { + bool usingPB = false; GetUsePrivateBrowsing(&usingPB); return usingPB; } - bool UseRemoteTabs() { - bool usingRT; + bool UseRemoteTabs() + { + bool usingRT = false; GetUseRemoteTabs(&usingRT); return usingRT; } - bool UseTrackingProtection() { - bool usingTP; + bool UseTrackingProtection() + { + bool usingTP = false; GetUseTrackingProtection(&usingTP); return usingTP; } diff --git a/uriloader/prefetch/OfflineCacheUpdateParent.cpp b/uriloader/prefetch/OfflineCacheUpdateParent.cpp index 9539fa012698..c77f2b49a02e 100644 --- a/uriloader/prefetch/OfflineCacheUpdateParent.cpp +++ b/uriloader/prefetch/OfflineCacheUpdateParent.cpp @@ -149,7 +149,7 @@ OfflineCacheUpdateParent::Schedule(const URIParams& aManifestURI, } NS_IMETHODIMP -OfflineCacheUpdateParent::UpdateStateChanged(nsIOfflineCacheUpdate *aUpdate, uint32_t state) +OfflineCacheUpdateParent::UpdateStateChanged(nsIOfflineCacheUpdate* aUpdate, uint32_t state) { if (mIPCClosed) return NS_ERROR_UNEXPECTED; @@ -176,7 +176,7 @@ OfflineCacheUpdateParent::UpdateStateChanged(nsIOfflineCacheUpdate *aUpdate, uin } NS_IMETHODIMP -OfflineCacheUpdateParent::ApplicationCacheAvailable(nsIApplicationCache *aApplicationCache) +OfflineCacheUpdateParent::ApplicationCacheAvailable(nsIApplicationCache* aApplicationCache) { if (mIPCClosed) return NS_ERROR_UNEXPECTED; @@ -221,13 +221,13 @@ OfflineCacheUpdateParent::GetNestedFrameId(uint64_t* aId) } NS_IMETHODIMP -OfflineCacheUpdateParent::GetIsContent(bool *aIsContent) +OfflineCacheUpdateParent::GetIsContent(bool* aIsContent) { return NS_ERROR_NOT_IMPLEMENTED; } NS_IMETHODIMP -OfflineCacheUpdateParent::GetUsePrivateBrowsing(bool *aUsePrivateBrowsing) +OfflineCacheUpdateParent::GetUsePrivateBrowsing(bool* aUsePrivateBrowsing) { return NS_ERROR_NOT_IMPLEMENTED; } @@ -244,7 +244,7 @@ OfflineCacheUpdateParent::SetPrivateBrowsing(bool aUsePrivateBrowsing) } NS_IMETHODIMP -OfflineCacheUpdateParent::GetUseRemoteTabs(bool *aUseRemoteTabs) +OfflineCacheUpdateParent::GetUseRemoteTabs(bool* aUseRemoteTabs) { return NS_ERROR_NOT_IMPLEMENTED; } @@ -256,7 +256,7 @@ OfflineCacheUpdateParent::SetRemoteTabs(bool aUseRemoteTabs) } NS_IMETHODIMP -OfflineCacheUpdateParent::GetIsInIsolatedMozBrowserElement(bool *aIsInIsolatedMozBrowserElement) +OfflineCacheUpdateParent::GetIsInIsolatedMozBrowserElement(bool* aIsInIsolatedMozBrowserElement) { NS_ENSURE_TRUE(mLoadingPrincipal, NS_ERROR_UNEXPECTED); return mLoadingPrincipal->GetIsInIsolatedMozBrowserElement(aIsInIsolatedMozBrowserElement); @@ -277,7 +277,7 @@ OfflineCacheUpdateParent::GetOriginAttributes(JS::MutableHandleValue aAttrs) } NS_IMETHODIMP -OfflineCacheUpdateParent::GetUseTrackingProtection(bool *aUseTrackingProtection) +OfflineCacheUpdateParent::GetUseTrackingProtection(bool* aUseTrackingProtection) { return NS_ERROR_NOT_IMPLEMENTED; }