diff options
author | Evan Martin <martine@danga.com> | 2013-05-19 16:09:23 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2013-05-19 16:09:23 (GMT) |
commit | 6485c487ecfc3d9cfdaa0de1b2ef8881a053339c (patch) | |
tree | 3662175efde245186f84a93b696ae1dd67a2e25e | |
parent | 9f347d9fd292f960cf93f4ec54c63e9a0a4d281a (diff) | |
parent | c74abd555746ef0d2eebd8ff4402dd76769bb63e (diff) | |
download | Ninja-6485c487ecfc3d9cfdaa0de1b2ef8881a053339c.zip Ninja-6485c487ecfc3d9cfdaa0de1b2ef8881a053339c.tar.gz Ninja-6485c487ecfc3d9cfdaa0de1b2ef8881a053339c.tar.bz2 |
Merge pull request #577 from tfarina/structs
structs not classes.
-rw-r--r-- | src/line_printer.h | 3 | ||||
-rw-r--r-- | src/ninja_test.cc | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/line_printer.h b/src/line_printer.h index c292464..aea2817 100644 --- a/src/line_printer.h +++ b/src/line_printer.h @@ -20,8 +20,7 @@ using namespace std; /// Prints lines of text, possibly overprinting previously printed lines /// if the terminal supports it. -class LinePrinter { - public: +struct LinePrinter { LinePrinter(); bool is_smart_terminal() const { return smart_terminal_; } diff --git a/src/ninja_test.cc b/src/ninja_test.cc index 31754f2..989ea5c 100644 --- a/src/ninja_test.cc +++ b/src/ninja_test.cc @@ -31,8 +31,7 @@ string StringPrintf(const char* format, ...) { } /// A test result printer that's less wordy than gtest's default. -class LaconicPrinter : public testing::EmptyTestEventListener { - public: +struct LaconicPrinter : public testing::EmptyTestEventListener { LaconicPrinter() : tests_started_(0), test_count_(0), iteration_(0) {} virtual void OnTestProgramStart(const testing::UnitTest& unit_test) { test_count_ = unit_test.test_to_run_count(); |