| 253 | } |
| 254 | |
| 255 | CRadioDisplay *CRadioStyle::MakeRadioDisplay(CRadioMenu *menu) |
| 256 | { |
| 257 | CRadioDisplay *display; |
| 258 | if (m_FreeDisplays.empty()) |
| 259 | { |
| 260 | display = new CRadioDisplay(); |
| 261 | } |
| 262 | else |
| 263 | { |
| 264 | display = m_FreeDisplays.front(); |
| 265 | m_FreeDisplays.pop(); |
| 266 | display->Reset(); |
| 267 | } |
| 268 | return display; |
| 269 | } |
| 270 | |
| 271 | void CRadioStyle::FreeRadioDisplay(CRadioDisplay *display) |
| 272 | { |
no test coverage detected