Bug 1369280 (part 1) - Reindent nsProfiler.h. r=mstange.
authorNicholas Nethercote <nnethercote@mozilla.com>
Fri, 02 Jun 2017 08:16:00 +1000
changeset 361994 ca2579919062397cc5bd3f39e801f8d6f766816f
parent 361993 c738c30dc6a248508e00d4d53bd909ef03f65be6
child 361995 9b2fc8bf9cad366dbded5b56f0f309d3f86d7f81
push id31953
push usercbook@mozilla.com
push dateFri, 02 Jun 2017 12:22:33 +0000
treeherdermozilla-central@2a8478029a0c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmstange
bugs1369280
milestone55.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 1369280 (part 1) - Reindent nsProfiler.h. r=mstange.
tools/profiler/gecko/nsProfiler.h
--- a/tools/profiler/gecko/nsProfiler.h
+++ b/tools/profiler/gecko/nsProfiler.h
@@ -1,46 +1,47 @@
-/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
+/* vim: set ts=8 sts=2 et sw=2 tw=80: */
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
-#ifndef _NSPROFILER_H_
-#define _NSPROFILER_H_
+#ifndef nsProfiler_h
+#define nsProfiler_h
 
 #include "nsIProfiler.h"
 #include "nsIObserver.h"
 #include "mozilla/Attributes.h"
 #include "nsServiceManagerUtils.h"
 
 namespace mozilla {
 class ProfileGatherer;
 }
 
 class nsProfiler final : public nsIProfiler, public nsIObserver
 {
 public:
-    nsProfiler();
+  nsProfiler();
 
-    NS_DECL_ISUPPORTS
-    NS_DECL_NSIOBSERVER
-    NS_DECL_NSIPROFILER
+  NS_DECL_ISUPPORTS
+  NS_DECL_NSIOBSERVER
+  NS_DECL_NSIPROFILER
 
-    nsresult Init();
+  nsresult Init();
 
-    static nsProfiler* GetOrCreate()
-    {
-	nsCOMPtr<nsIProfiler> iprofiler =
-	    do_GetService("@mozilla.org/tools/profiler;1");
-	return static_cast<nsProfiler*>(iprofiler.get());
-    }
+  static nsProfiler* GetOrCreate()
+  {
+    nsCOMPtr<nsIProfiler> iprofiler =
+      do_GetService("@mozilla.org/tools/profiler;1");
+    return static_cast<nsProfiler*>(iprofiler.get());
+  }
 
-    void GatheredOOPProfile(const nsACString& aProfile);
+  void GatheredOOPProfile(const nsACString& aProfile);
 
 private:
-    ~nsProfiler();
+  ~nsProfiler();
 
-    RefPtr<mozilla::ProfileGatherer> mGatherer;
-    bool mLockedForPrivateBrowsing;
+  RefPtr<mozilla::ProfileGatherer> mGatherer;
+  bool mLockedForPrivateBrowsing;
 };
 
-#endif /* _NSPROFILER_H_ */
+#endif // nsProfiler_h