Bug 1343557 - Make operator AutoCreateAndDestroyReentrantMonitor::ReentrantMonitor* const; r?bsmedberg draft
authorDan Minor <dminor@mozilla.com>
Thu, 02 Mar 2017 08:57:54 -0500
changeset 494055 538e88f951285f217a58f0450e31dcdf9cbf2172
parent 494050 4048bda85a9695a98811600397c7601ae3de71ce
child 494056 d2d4e5686a68f823d011eb9eb1f4c4deb942a902
push id47916
push userdminor@mozilla.com
push dateMon, 06 Mar 2017 14:03:31 +0000
reviewersbsmedberg
bugs1343557
milestone54.0a1
Bug 1343557 - Make operator AutoCreateAndDestroyReentrantMonitor::ReentrantMonitor* const; r?bsmedberg MozReview-Commit-ID: Fy3k5fvEs5J
xpcom/tests/gtest/TestTimers.cpp
--- a/xpcom/tests/gtest/TestTimers.cpp
+++ b/xpcom/tests/gtest/TestTimers.cpp
@@ -61,17 +61,17 @@ public:
     mReentrantMonitor = new ReentrantMonitor("TestTimers::AutoMon");
     MOZ_RELEASE_ASSERT(mReentrantMonitor, "Out of memory!");
   }
 
   ~AutoCreateAndDestroyReentrantMonitor() {
     delete mReentrantMonitor;
   }
 
-  operator ReentrantMonitor* () {
+  operator ReentrantMonitor* () const {
     return mReentrantMonitor;
   }
 
 private:
   ReentrantMonitor* mReentrantMonitor;
 };
 
 class TimerCallback final : public nsITimerCallback