Bug 1142181 - ProfilerBacktrace.cpp should #include its own .h file first, r=aklotz
authorchiajung hung <chung@mozilla.com>
Mon, 16 Mar 2015 23:01:00 +0100
changeset 251090 56f421903a91f7811a2e857553a537cfc11e2c38
parent 251089 5cb314c34f241988e334b7a26b0237c77b4afcca
child 251091 8255f2dde7789be7d4e63488d8c19c236905718c
push id1096
push userbcampen@mozilla.com
push dateTue, 17 Mar 2015 18:28:18 +0000
reviewersaklotz
bugs1142181
milestone39.0a1
Bug 1142181 - ProfilerBacktrace.cpp should #include its own .h file first, r=aklotz
tools/profiler/ProfilerBacktrace.cpp
tools/profiler/ProfilerBacktrace.h
--- a/tools/profiler/ProfilerBacktrace.cpp
+++ b/tools/profiler/ProfilerBacktrace.cpp
@@ -1,19 +1,19 @@
 /* -*- 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/. */
 
+#include "ProfilerBacktrace.h"
+
 #include "JSStreamWriter.h"
-#include "ProfilerBacktrace.h"
 #include "SyncProfile.h"
 
-
 ProfilerBacktrace::ProfilerBacktrace(SyncProfile* aProfile)
   : mProfile(aProfile)
 {
   MOZ_COUNT_CTOR(ProfilerBacktrace);
   MOZ_ASSERT(aProfile);
 }
 
 ProfilerBacktrace::~ProfilerBacktrace()
--- a/tools/profiler/ProfilerBacktrace.h
+++ b/tools/profiler/ProfilerBacktrace.h
@@ -3,16 +3,17 @@
 /* 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 __PROFILER_BACKTRACE_H
 #define __PROFILER_BACKTRACE_H
 
 class SyncProfile;
+class JSStreamWriter;
 
 class ProfilerBacktrace
 {
 public:
   explicit ProfilerBacktrace(SyncProfile* aProfile);
   ~ProfilerBacktrace();
 
   void StreamJSObject(JSStreamWriter& b);