| 2644 | } |
| 2645 | |
| 2646 | void PrintTo(std::ostream* os) { |
| 2647 | PrintHeader(os); |
| 2648 | FlushEdits(); |
| 2649 | for (std::list<std::pair<char, const char*> >::const_iterator it = |
| 2650 | hunk_.begin(); |
| 2651 | it != hunk_.end(); ++it) { |
| 2652 | *os << it->first << it->second << "\n"; |
| 2653 | } |
| 2654 | } |
| 2655 | |
| 2656 | bool has_edits() const { return adds_ || removes_; } |
| 2657 |
no test coverage detected