| 281 | } |
| 282 | |
| 283 | int Date::Compare(const Date& lhs, const Date& rhs) { |
| 284 | if (lhs.m_year > rhs.m_year) |
| 285 | return 1; |
| 286 | if (lhs.m_year < rhs.m_year) |
| 287 | return -1; |
| 288 | if (lhs.m_month > rhs.m_month) |
| 289 | return 1; |
| 290 | if (lhs.m_month < rhs.m_month) |
| 291 | return -1; |
| 292 | if (lhs.m_day > rhs.m_day) |
| 293 | return 1; |
| 294 | if (lhs.m_day < rhs.m_day) |
| 295 | return -1; |
| 296 | return 0; |
| 297 | } |
| 298 | |
| 299 | Date Date::NextDay() const { |
| 300 | Date result(*this); |
nothing calls this directly
no outgoing calls
no test coverage detected