summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/clean.cc1
-rw-r--r--src/clean.h9
2 files changed, 5 insertions, 5 deletions
diff --git a/src/clean.cc b/src/clean.cc
index 16ca5e5..d22ac59 100644
--- a/src/clean.cc
+++ b/src/clean.cc
@@ -20,7 +20,6 @@
#include <string.h>
#include <sys/stat.h>
-#include "build.h"
#include "disk_interface.h"
#include "graph.h"
#include "state.h"
diff --git a/src/clean.h b/src/clean.h
index 9961658..ab606f4 100644
--- a/src/clean.h
+++ b/src/clean.h
@@ -14,15 +14,16 @@
#ifndef NINJA_CLEAN_H_
#define NINJA_CLEAN_H_
+#pragma once
+
+#include <set>
+#include <string>
#include "build.h"
-#include <string>
-#include <set>
using namespace std;
struct State;
-struct BuildConfig;
struct Node;
struct Rule;
struct DiskInterface;
@@ -92,7 +93,7 @@ class Cleaner {
void Reset();
State* state_;
- BuildConfig config_;
+ const BuildConfig& config_;
set<string> removed_;
int cleaned_files_count_;
DiskInterface* disk_interface_;