| 22 | } |
| 23 | |
| 24 | void Date::AdjustMonthLimit() { |
| 25 | if (m_month == 2 && m_day > 28) { |
| 26 | int days = DaysInMonth(m_year, m_month); |
| 27 | if (m_day > days) |
| 28 | m_day = days; |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | bool Date::Set(int year, int month, int day) { |
| 33 | if (!IsValid(year, month, day)) |
nothing calls this directly
no outgoing calls
no test coverage detected