Bug 1313467 - Part 3: Cleanup the formatting of the rest of the file. r=froydnj
☠☠ backed out by 561b87e98ada ☠ ☠
authorEric Rahm <erahm@mozilla.com>
Thu, 03 Nov 2016 17:48:17 -0700
changeset 320839 0acc0a131101e59d9b6dbc1dded254ebf6707104
parent 320838 6fae1bbd3819833d07fd47f7b9b15b8e42e12452
child 320840 3c25a6ed5914b926e5c554c5f38a2e71ee0673e7
push id83473
push usererahm@mozilla.com
push dateFri, 04 Nov 2016 00:56:12 +0000
treeherdermozilla-inbound@5b5686e1bcd1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1313467
milestone52.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1313467 - Part 3: Cleanup the formatting of the rest of the file. r=froydnj MozReview-Commit-ID: AfMDPcBjf3Y
xpcom/tests/TestAutoPtr.cpp
--- a/xpcom/tests/TestAutoPtr.cpp
+++ b/xpcom/tests/TestAutoPtr.cpp
@@ -5,87 +5,87 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 #include "nsAutoPtr.h"
 #include <stdio.h>
 #include "nscore.h"
 #include "mozilla/Attributes.h"
 
 class TestObjectBaseA {
-    public:
-        // Virtual dtor for deleting through base class pointer
-        virtual ~TestObjectBaseA() { }
-        void MemberFunction( int, int*, int& )
-        {
-          printf("member function is invoked.\n");
-        }
-        virtual void VirtualMemberFunction(int, int*, int&) { };
-        virtual void VirtualConstMemberFunction(int, int*, int&) const { };
-        int fooA;
+  public:
+    // Virtual dtor for deleting through base class pointer
+    virtual ~TestObjectBaseA() { }
+    void MemberFunction(int, int*, int&)
+    {
+      printf("member function is invoked.\n");
+    }
+    virtual void VirtualMemberFunction(int, int*, int&) { };
+    virtual void VirtualConstMemberFunction(int, int*, int&) const { };
+    int fooA;
 };
 
 class TestObjectBaseB {
-    public:
-        // Virtual dtor for deleting through base class pointer
-        virtual ~TestObjectBaseB() { }
-        int fooB;
+  public:
+    // Virtual dtor for deleting through base class pointer
+    virtual ~TestObjectBaseB() { }
+    int fooB;
 };
 
 class TestObject : public TestObjectBaseA, public TestObjectBaseB {
-    public:
-        TestObject()
-        {
-            printf("  Creating TestObject %p.\n",
-                   static_cast<void*>(this));
-        }
+  public:
+    TestObject()
+    {
+      printf("  Creating TestObject %p.\n",
+          static_cast<void*>(this));
+    }
 
-        // Virtual dtor for deleting through base class pointer
-        virtual ~TestObject()
-        {
-            printf("  Destroying TestObject %p.\n",
-                   static_cast<void*>(this));
-        }
+    // Virtual dtor for deleting through base class pointer
+    virtual ~TestObject()
+    {
+      printf("  Destroying TestObject %p.\n",
+          static_cast<void*>(this));
+    }
 
-        virtual void VirtualMemberFunction(int, int*, int&) override
-        {
-          printf("override virtual member function is invoked.\n");
-        }
-        virtual void VirtualConstMemberFunction(int, int*, int&) const override
-        {
-          printf("override virtual const member function is invoked.\n");
-        }
+    virtual void VirtualMemberFunction(int, int*, int&) override
+    {
+      printf("override virtual member function is invoked.\n");
+    }
+    virtual void VirtualConstMemberFunction(int, int*, int&) const override
+    {
+      printf("override virtual const member function is invoked.\n");
+    }
 };
 
 static void CreateTestObject(TestObject **aResult)
 {
-    *aResult = new TestObject();
+  *aResult = new TestObject();
 }
 
 static void DoSomethingWithTestObject(TestObject *aIn)
 {
-    printf("  Doing something with |TestObject| %p.\n",
-           static_cast<void*>(aIn));
+  printf("  Doing something with |TestObject| %p.\n",
+      static_cast<void*>(aIn));
 }
 
 static void DoSomethingWithConstTestObject(const TestObject *aIn)
 {
-    printf("  Doing something with |const TestObject| %p.\n",
-           static_cast<const void*>(aIn));
+  printf("  Doing something with |const TestObject| %p.\n",
+      static_cast<const void*>(aIn));
 }
 
 static void DoSomethingWithTestObjectBaseB(TestObjectBaseB *aIn)
 {
-    printf("  Doing something with |TestObjectBaseB| %p.\n",
-           static_cast<void*>(aIn));
+  printf("  Doing something with |TestObjectBaseB| %p.\n",
+      static_cast<void*>(aIn));
 }
 
 static void DoSomethingWithConstTestObjectBaseB(const TestObjectBaseB *aIn)
 {
-    printf("  Doing something with |const TestObjectBaseB| %p.\n",
-           static_cast<const void*>(aIn));
+  printf("  Doing something with |const TestObjectBaseB| %p.\n",
+      static_cast<const void*>(aIn));
 }
 
 void test_assignment()
 {
   {
     printf("Should create one |TestObject|:\n");
     nsAutoPtr<TestObject> pobj( new TestObject() );
     printf("Should destroy one |TestObject|:\n");