Bug 1322576 - [4.0] Fix some coding style issues. r=smaug

This commit is contained in:
Eugen Sawin 2017-02-15 23:06:25 +01:00
Родитель 8598247dd1
Коммит c237984e34
2 изменённых файлов: 16 добавлений и 13 удалений

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

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

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

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