Bug 1343557 - Make PfxInstr::operator== const; r?jseward draft
authorDan Minor <dminor@mozilla.com>
Wed, 01 Mar 2017 15:26:29 -0500
changeset 494050 4048bda85a9695a98811600397c7601ae3de71ce
parent 494049 a3ed675dbcfd53af775d49dd012f61c9a8e529ec
child 494051 0a8dcc36ed59c7aed214bb832c6a94dbcf406d2d
child 494055 538e88f951285f217a58f0450e31dcdf9cbf2172
push id47913
push userdminor@mozilla.com
push dateMon, 06 Mar 2017 13:36:36 +0000
reviewersjseward
bugs1343557
milestone54.0a1
Bug 1343557 - Make PfxInstr::operator== const; r?jseward MozReview-Commit-ID: 5WpBNHbqz0q
tools/profiler/lul/LulMainInt.h
--- a/tools/profiler/lul/LulMainInt.h
+++ b/tools/profiler/lul/LulMainInt.h
@@ -82,17 +82,17 @@ struct PfxInstr {
   PfxInstr(PfxExprOp opcode, int32_t operand)
     : mOpcode(opcode)
     , mOperand(operand)
   {}
   explicit PfxInstr(PfxExprOp opcode)
     : mOpcode(opcode)
     , mOperand(0)
   {}
-  bool operator==(const PfxInstr& other) {
+  bool operator==(const PfxInstr& other) const {
     return mOpcode == other.mOpcode && mOperand == other.mOperand;
   }
   PfxExprOp mOpcode;
   int32_t   mOperand;
 };
 
 static_assert(sizeof(PfxInstr) <= 8, "PfxInstr size changed unexpectedly");