From 70789ec61c4b96b2a3c575182897d58211df1206 Mon Sep 17 00:00:00 2001 From: Thiago Farina Date: Wed, 23 May 2012 16:17:30 -0300 Subject: No need to write 'struct' before type name when declaraing variables in C++. Signed-off-by: Thiago Farina --- src/build.h | 9 +++++---- src/state.h | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/build.h b/src/build.h index 5dcdb5b..036325d 100644 --- a/src/build.h +++ b/src/build.h @@ -27,8 +27,9 @@ using namespace std; #include "util.h" // int64_t struct BuildLog; -struct Edge; +struct BuildStatus; struct DiskInterface; +struct Edge; struct Node; struct State; @@ -144,10 +145,10 @@ struct Builder { Plan plan_; DiskInterface* disk_interface_; auto_ptr command_runner_; - struct BuildStatus* status_; - struct BuildLog* log_; + BuildStatus* status_; + BuildLog* log_; -private: + private: // Unimplemented copy ctor and operator= ensure we don't copy the auto_ptr. Builder(const Builder &other); // DO NOT IMPLEMENT void operator=(const Builder &other); // DO NOT IMPLEMENT diff --git a/src/state.h b/src/state.h index 845c947..23ca12b 100644 --- a/src/state.h +++ b/src/state.h @@ -72,7 +72,7 @@ struct State { BindingEnv bindings_; vector defaults_; - struct BuildLog* build_log_; + BuildLog* build_log_; }; #endif // NINJA_STATE_H_ -- cgit v0.12