Minor style nits in WeakPtr code forgotten by me when reviewing. No bug, r=sparky
authorJeff Walden <jwalden@mit.edu>
Mon, 08 Oct 2012 16:03:52 -0700
changeset 109885 176600f40ddfc4d73e2367285eca456eda33ed62
parent 109884 4e3e7e1496afe9c27fd503f14f33b9cb461d98ec
child 109886 3b433d565a07197f5a0ef6635b239e43f0bbff77
push id23657
push useremorley@mozilla.com
push dateThu, 11 Oct 2012 13:47:00 +0000
treeherdermozilla-central@2fae8bd461da [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssparky
milestone19.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
Minor style nits in WeakPtr code forgotten by me when reviewing. No bug, r=sparky
mfbt/tests/TestWeakPtr.cpp
--- a/mfbt/tests/TestWeakPtr.cpp
+++ b/mfbt/tests/TestWeakPtr.cpp
@@ -11,17 +11,17 @@ using mozilla::WeakPtr;
 class C : public SupportsWeakPtr<C>
 {
   public:
     int num;
     void act() {}
 };
 
 static void
-example()
+Example()
 {
 
   C* ptr =  new C();
 
   // Get weak pointers to ptr. The first time asWeakPtr is called
   // a reference counted WeakReference object is created that
   // can live beyond the lifetime of 'ptr'. The WeakReference
   // object will be notified of 'ptr's destruction.
@@ -42,17 +42,18 @@ example()
 }
 
 struct A : public SupportsWeakPtr<A>
 {
     int data;
 };
 
 
-int main()
+int
+main()
 {
 
   A* a = new A;
 
   // a2 is unused to test the case when we haven't initialized
   // the internal WeakReference pointer.
   A* a2 = new A;
 
@@ -65,12 +66,12 @@ int main()
       MOZ_ASSERT(ptr->data == 5);
   }
 
   delete a;
   MOZ_ASSERT(!ptr);
 
   delete a2;
 
-  example();
+  Example();
 
   return 0;
 }