| 2623 | } |
| 2624 | |
| 2625 | void PrintTo(std::ostream* os) { |
| 2626 | PrintHeader(os); |
| 2627 | FlushEdits(); |
| 2628 | for (std::list<std::pair<char, const char*> >::const_iterator it = |
| 2629 | hunk_.begin(); |
| 2630 | it != hunk_.end(); ++it) { |
| 2631 | *os << it->first << it->second << "\n"; |
| 2632 | } |
| 2633 | } |
| 2634 | |
| 2635 | bool has_edits() const { return adds_ || removes_; } |
| 2636 |
no test coverage detected