Fix initializer lists to be Google C++ style.
Change-Id: Iada52ea5cf95492684033993b3299042bdaf6cee
diff --git a/src/thread.cc b/src/thread.cc
index 940cd88..9f88f5a 100644
--- a/src/thread.cc
+++ b/src/thread.cc
@@ -519,9 +519,9 @@
}
struct StackDumpVisitor : public StackVisitor {
- StackDumpVisitor(std::ostream& os, const Thread* thread) :
- StackVisitor(thread->GetManagedStack(), thread->GetTraceStack()), last_method(NULL),
- last_line_number(0), repetition_count(0), os(os), thread(thread), frame_count(0) {
+ StackDumpVisitor(std::ostream& os, const Thread* thread)
+ : StackVisitor(thread->GetManagedStack(), thread->GetTraceStack()), last_method(NULL),
+ last_line_number(0), repetition_count(0), os(os), thread(thread), frame_count(0) {
}
virtual ~StackDumpVisitor() {
@@ -998,9 +998,8 @@
class CountStackDepthVisitor : public StackVisitor {
public:
CountStackDepthVisitor(const ManagedStack* stack,
- const std::vector<TraceStackFrame>* trace_stack) :
- StackVisitor(stack, trace_stack), depth_(0), skip_depth_(0),
- skipping_(true) {}
+ const std::vector<TraceStackFrame>* trace_stack)
+ : StackVisitor(stack, trace_stack), depth_(0), skip_depth_(0), skipping_(true) {}
bool VisitFrame() {
// We want to skip frames up to and including the exception's constructor.
@@ -1039,9 +1038,9 @@
public:
explicit BuildInternalStackTraceVisitor(const ManagedStack* stack,
const std::vector<TraceStackFrame>* trace_stack,
- int skip_depth) :
- StackVisitor(stack, trace_stack), skip_depth_(skip_depth), count_(0), dex_pc_trace_(NULL),
- method_trace_(NULL) {}
+ int skip_depth)
+ : StackVisitor(stack, trace_stack), skip_depth_(skip_depth), count_(0), dex_pc_trace_(NULL),
+ method_trace_(NULL) {}
bool Init(int depth, const ScopedJniThreadState& ts) {
// Allocate method trace with an extra slot that will hold the PC trace
@@ -1551,8 +1550,8 @@
Method* Thread::GetCurrentMethod(uint32_t* dex_pc, size_t* frame_id) const {
struct CurrentMethodVisitor : public StackVisitor {
CurrentMethodVisitor(const ManagedStack* stack,
- const std::vector<TraceStackFrame>* trace_stack) :
- StackVisitor(stack, trace_stack), method_(NULL), dex_pc_(0), frame_id_(0) {}
+ const std::vector<TraceStackFrame>* trace_stack)
+ : StackVisitor(stack, trace_stack), method_(NULL), dex_pc_(0), frame_id_(0) {}
virtual bool VisitFrame() {
Method* m = GetMethod();
@@ -1596,10 +1595,8 @@
class ReferenceMapVisitor : public StackVisitor {
public:
ReferenceMapVisitor(const ManagedStack* stack, const std::vector<TraceStackFrame>* trace_stack,
- Context* context, Heap::RootVisitor* root_visitor,
- void* arg) : StackVisitor(stack, trace_stack, context),
- root_visitor_(root_visitor), arg_(arg) {
- }
+ Context* context, Heap::RootVisitor* root_visitor, void* arg)
+ : StackVisitor(stack, trace_stack, context), root_visitor_(root_visitor), arg_(arg) {}
bool VisitFrame() {
if (false) {