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 291145 f1cfe4b34e8da1b44551bff44827812a43d2864c
parent 291144 21a8c1db64fa61200e5e17f6140589407478c911
child 291146 02ad453e3bfc684965c54defd01f310b8f7b93cf
push id19656
push usergwagner@mozilla.com
push dateMon, 04 Apr 2016 13:43:23 +0000
treeherderb2g-inbound@e99061fde28a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjst
bugs1245868
milestone48.0a1
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;
 }