From 5519c76e667bf2822d995e573354e825772c5b92 Mon Sep 17 00:00:00 2001 From: Doug Turner Date: Thu, 13 Sep 2012 22:37:00 -0700 Subject: [PATCH] No Bug. Whitespace cleanup. r=me --- .../DeviceStorageRequestParent.cpp | 2 +- dom/devicestorage/nsDeviceStorage.cpp | 50 +++++++++---------- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/dom/devicestorage/DeviceStorageRequestParent.cpp b/dom/devicestorage/DeviceStorageRequestParent.cpp index f93adffe0d4..4e19c6f1e85 100644 --- a/dom/devicestorage/DeviceStorageRequestParent.cpp +++ b/dom/devicestorage/DeviceStorageRequestParent.cpp @@ -319,7 +319,7 @@ DeviceStorageRequestParent::StatFileEvent::CancelableRun() if (NS_FAILED(rv)) { freeSpace = 0; } - + r = new PostStatResultEvent(mParent, freeSpace, diskUsage); NS_DispatchToMainThread(r); return NS_OK; diff --git a/dom/devicestorage/nsDeviceStorage.cpp b/dom/devicestorage/nsDeviceStorage.cpp index f242e77137b..f95cce03f32 100644 --- a/dom/devicestorage/nsDeviceStorage.cpp +++ b/dom/devicestorage/nsDeviceStorage.cpp @@ -84,7 +84,7 @@ DeviceStorageTypeChecker::CreateOrGet() if (!stringService) { return nullptr; } - + nsCOMPtr filterBundle; if (NS_FAILED(stringService->CreateBundle(DEVICESTORAGE_PROPERTIES, getter_AddRefs(filterBundle)))) { return nullptr; @@ -192,8 +192,8 @@ private: }; DeviceStorageFile::DeviceStorageFile(const nsAString& aStorageType, - nsIFile* aFile, - const nsAString& aPath) + nsIFile* aFile, + const nsAString& aPath) : mPath(aPath) , mStorageType(aStorageType) , mEditable(false) @@ -336,8 +336,8 @@ DeviceStorageFile::Write(nsIInputStream* aInputStream) while (bufSize) { uint32_t wrote; rv = bufferedOutputStream->WriteFrom(aInputStream, - static_cast(NS_MIN(bufSize, PR_UINT32_MAX)), - &wrote); + static_cast(NS_MIN(bufSize, PR_UINT32_MAX)), + &wrote); if (NS_FAILED(rv)) { break; } @@ -531,13 +531,13 @@ DeviceStorageFile::DirectoryDiskUsage(nsIFile* aFile, uint64_t* aSoFar, const ns } else if (isFile) { if (!typeChecker->Check(aStorageType, f)) { - continue; + continue; } int64_t size; rv = f->GetFileSize(&size); if (NS_SUCCEEDED(rv)) { - *aSoFar += size; + *aSoFar += size; } } } @@ -1109,8 +1109,8 @@ public: nsRefPtr domstat = new nsDOMDeviceStorageStat(mFreeBytes, mTotalBytes, state); jsval result = InterfaceToJsval(mRequest->GetOwner(), - domstat, - &NS_GET_IID(nsIDOMDeviceStorageStat)); + domstat, + &NS_GET_IID(nsIDOMDeviceStorageStat)); mRequest->FireSuccess(result); mRequest = nullptr; @@ -1449,16 +1449,16 @@ public: if (XRE_GetProcessType() != GeckoProcessType_Default) { - BlobChild* actor = ContentChild::GetSingleton()->GetOrCreateActorForBlob(mBlob); - if (!actor) { - return NS_ERROR_FAILURE; - } + BlobChild* actor = ContentChild::GetSingleton()->GetOrCreateActorForBlob(mBlob); + if (!actor) { + return NS_ERROR_FAILURE; + } DeviceStorageAddParams params; - params.blobChild() = actor; - params.type() = mFile->mStorageType; - params.name() = mFile->mPath; - params.fullpath() = fullpath; + params.blobChild() = actor; + params.type() = mFile->mStorageType; + params.name() = mFile->mPath; + params.fullpath() = fullpath; PDeviceStorageRequestChild* child = new DeviceStorageRequestChild(mRequest, mFile); ContentChild::GetSingleton()->SendPDeviceStorageRequestConstructor(child, params); @@ -1499,7 +1499,7 @@ public: PDeviceStorageRequestChild* child = new DeviceStorageRequestChild(mRequest, mFile); DeviceStorageStatParams params(mFile->mStorageType, fullpath); ContentChild::GetSingleton()->SendPDeviceStorageRequestConstructor(child, params); - return NS_OK; + return NS_OK; } r = new StatFileEvent(mFile, mRequest); break; @@ -1507,8 +1507,8 @@ public: case DEVICE_STORAGE_REQUEST_WATCH: { - mDeviceStorage->mAllowedToWatchFile = true; - return NS_OK; + mDeviceStorage->mAllowedToWatchFile = true; + return NS_OK; } } @@ -1719,7 +1719,7 @@ nsDOMDeviceStorage::AddNamed(nsIDOMBlob *aBlob, } else { r = new DeviceStorageRequest(DeviceStorageRequest::DEVICE_STORAGE_REQUEST_WRITE, - win, mPrincipal, dsf, request, aBlob); + win, mPrincipal, dsf, request, aBlob); } NS_DispatchToMainThread(r); @@ -1829,10 +1829,10 @@ nsDOMDeviceStorage::Stat(nsIDOMDOMRequest** aRetval) nsRefPtr dsf = new DeviceStorageFile(mStorageType, mRootDirectory); nsCOMPtr r = new DeviceStorageRequest(DeviceStorageRequest::DEVICE_STORAGE_REQUEST_STAT, - win, - mPrincipal, - dsf, - request); + win, + mPrincipal, + dsf, + request); NS_DispatchToMainThread(r); return NS_OK; }