Bug 1245868 - repalce pass by value with pass by pointer in IsHeadRequest. r=jst
authorBogdan Postelnicu <bogdan.postelnicu@softvision.ro>
Wed, 17 Feb 2016 10:17:20 +0200
changeset 291086 f1cfe4b34e8da1b44551bff44827812a43d2864c
parent 291085 21a8c1db64fa61200e5e17f6140589407478c911
child 291087 02ad453e3bfc684965c54defd01f310b8f7b93cf
push id30129
push usercbook@mozilla.com
push dateFri, 01 Apr 2016 09:48:09 +0000
treeherdermozilla-central@538d248fa252 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjst
bugs1245868
milestone48.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1245868 - repalce pass by value with pass by pointer in IsHeadRequest. r=jst MozReview-Commit-ID: 5eZ2XLmIjkk
dom/cache/Manager.cpp
--- a/dom/cache/Manager.cpp
+++ b/dom/cache/Manager.cpp
@@ -142,22 +142,22 @@ public:
 
     aResolver->Resolve(rv);
   }
 
 private:
   nsTArray<nsID> mDeletedBodyIdList;
 };
 
-bool IsHeadRequest(CacheRequest aRequest, CacheQueryParams aParams)
+bool IsHeadRequest(const CacheRequest& aRequest, const CacheQueryParams& aParams)
 {
   return !aParams.ignoreMethod() && aRequest.method().LowerCaseEqualsLiteral("head");
 }
 
-bool IsHeadRequest(CacheRequestOrVoid aRequest, CacheQueryParams aParams)
+bool IsHeadRequest(const CacheRequestOrVoid& aRequest, const CacheQueryParams& aParams)
 {
   if (aRequest.type() == CacheRequestOrVoid::TCacheRequest) {
     return !aParams.ignoreMethod() &&
            aRequest.get_CacheRequest().method().LowerCaseEqualsLiteral("head");
   }
   return false;
 }