summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThiago Farina <tfarina@chromium.org>2012-05-23 19:17:30 (GMT)
committerThiago Farina <tfarina@chromium.org>2012-05-23 19:17:30 (GMT)
commit70789ec61c4b96b2a3c575182897d58211df1206 (patch)
treee2830be9a450a7254604e3c7bbc8efedeee8a487 /src
parentb6664431cb5275389d6e25d5e29c67796b7281e7 (diff)
downloadNinja-70789ec61c4b96b2a3c575182897d58211df1206.zip
Ninja-70789ec61c4b96b2a3c575182897d58211df1206.tar.gz
Ninja-70789ec61c4b96b2a3c575182897d58211df1206.tar.bz2
No need to write 'struct' before type name when declaraing variables in C++.
Signed-off-by: Thiago Farina <tfarina@chromium.org>
Diffstat (limited to 'src')
-rw-r--r--src/build.h9
-rw-r--r--src/state.h2
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<CommandRunner> 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<Node*> defaults_;
- struct BuildLog* build_log_;
+ BuildLog* build_log_;
};
#endif // NINJA_STATE_H_