| 54 | } |
| 55 | |
| 56 | void |
| 57 | RecentItems::Populate(CString *items, LPCTSTR initial_default) |
| 58 | { |
| 59 | int i; |
| 60 | CString itemname; |
| 61 | |
| 62 | |
| 63 | |
| 64 | if (!initial_default) |
| 65 | initial_default = TEXT(""); |
| 66 | |
| 67 | for (i = 0; i < m_count; i++) { |
| 68 | AppendIndex(itemname, i); |
| 69 | |
| 70 | items[i] = theApp.GetProfileString(m_section, itemname, |
| 71 | i == 0 ? initial_default : TEXT("")); |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | void |
| 76 | RecentItems::Add(LPCTSTR item) |
no outgoing calls
no test coverage detected