Bug 1319401 - Replace default bodies of special member functions with = default; in editor/. draft
authorAndi-Bogdan Postelnicu <bpostelnicu@mozilla.com>
Tue, 22 Nov 2016 14:14:22 +0200
changeset 442384 b5dcb192436092e7d082258b5b0e263f957132b9
parent 442068 0534254e9a40b4bade2577c631fe4cfa0b5db41d
child 442385 a51c323f07607aefcc2556ef0d771b7243cde511
push id36696
push userbmo:bpostelnicu@mozilla.com
push dateTue, 22 Nov 2016 12:31:48 +0000
bugs1319401
milestone53.0a1
Bug 1319401 - Replace default bodies of special member functions with = default; in editor/. MozReview-Commit-ID: F9p3cvxPIrs
editor/txmgr/tests/TestTXMgr.cpp
--- a/editor/txmgr/tests/TestTXMgr.cpp
+++ b/editor/txmgr/tests/TestTXMgr.cpp
@@ -250,17 +250,17 @@ int32_t sAggregateBatchTestRedoOrderArr[
         127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140,
         281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294,
         295, 296, 297, 298, 299, 300, 301, 448, 449, 450, 451, 452, 453, 454,
         455, 456, 457, 458 };
 
 class TestTransaction : public nsITransaction
 {
 protected:
-  virtual ~TestTransaction() {}
+  virtual ~TestTransaction() = default;
 
 public:
 
   TestTransaction() {}
 
   NS_DECL_ISUPPORTS
 };
 
@@ -283,19 +283,17 @@ protected:
   int32_t mFlags;
 
 public:
 
   explicit SimpleTransaction(int32_t aFlags=NONE_FLAG)
     : mVal(++sConstructorCount), mFlags(aFlags)
   {}
 
-  virtual ~SimpleTransaction()
-  {
-  }
+  virtual ~SimpleTransaction() = default;
 
   NS_IMETHOD DoTransaction()
   {
     //
     // Make sure DoTransaction() is called in the order we expect!
     // Notice that we don't check to see if we go past the end of the array.
     // This is done on purpose since we want to crash if the order array is out
     // of date.
@@ -398,19 +396,17 @@ public:
     mNumber             = 1;
     mFlags              = aFlags & (~ALL_ERROR_FLAGS);
     mErrorFlags         = aFlags & ALL_ERROR_FLAGS;
     mTXMgr              = aTXMgr;
     mMaxLevel           = aMaxLevel;
     mNumChildrenPerNode = aNumChildrenPerNode;
   }
 
-  virtual ~AggregateTransaction()
-  {
-  }
+  virtual ~AggregateTransaction() = default;
 
   NS_IMETHOD DoTransaction()
   {
     if (mLevel >= mMaxLevel) {
       // Only leaf nodes can throw errors!
       mFlags |= mErrorFlags;
     }