Bug 1299125 - make the constructor of EnvironmentCoordinate default. r?waldo draft
authorAndi-Bogdan Postelnicu <bpostelnicu@mozilla.com>
Tue, 30 Aug 2016 15:55:23 +0300
changeset 690003 a423f7a7c6cef396d685ff30dbe25f047195caea
parent 688650 515407ebfa1433c31144374313bbfd8b942af41c
child 738443 531e789821a175622540c2b963714cfc389dbd84
push id87161
push userbmo:bpostelnicu@mozilla.com
push dateWed, 01 Nov 2017 08:28:27 +0000
reviewerswaldo
bugs1299125
milestone58.0a1
Bug 1299125 - make the constructor of EnvironmentCoordinate default. r?waldo MozReview-Commit-ID: FDylNVK73Sv
js/src/frontend/NameAnalysisTypes.h
--- a/js/src/frontend/NameAnalysisTypes.h
+++ b/js/src/frontend/NameAnalysisTypes.h
@@ -31,17 +31,17 @@ class EnvironmentCoordinate
 
   public:
     explicit inline EnvironmentCoordinate(jsbytecode* pc)
       : hops_(GET_ENVCOORD_HOPS(pc)), slot_(GET_ENVCOORD_SLOT(pc + ENVCOORD_HOPS_LEN))
     {
         MOZ_ASSERT(JOF_OPTYPE(JSOp(*pc)) == JOF_ENVCOORD);
     }
 
-    EnvironmentCoordinate() {}
+    EnvironmentCoordinate() = default;
 
     void setHops(uint32_t hops) {
         MOZ_ASSERT(hops < ENVCOORD_HOPS_LIMIT);
         hops_ = hops;
     }
 
     void setSlot(uint32_t slot) {
         MOZ_ASSERT(slot < ENVCOORD_SLOT_LIMIT);