| 1287 | |
| 1288 | template <> |
| 1289 | YEntry<YAttachment>::YEntry(CheckStatusWrapper* aStatus, YAttachment* aAttachment, CHECK_ENTRY checkAttachment) |
| 1290 | : ref(aAttachment), nextRef(NULL) |
| 1291 | { |
| 1292 | aStatus->init(); |
| 1293 | init(aAttachment->next); |
| 1294 | |
| 1295 | if (checkAttachment != CHECK_NONE && !(nextRef.hasData())) |
| 1296 | nextIsEmpty(aStatus, checkAttachment); |
| 1297 | |
| 1298 | if (checkAttachment != CHECK_NONE && aAttachment->savedStatus.getError()) |
| 1299 | { |
| 1300 | fini(); |
| 1301 | status_exception::raise(aAttachment->savedStatus.value()); |
| 1302 | } |
| 1303 | } |
| 1304 | |
| 1305 | template <> |
| 1306 | YEntry<YService>::YEntry(CheckStatusWrapper* aStatus, YService* aService, CHECK_ENTRY checkService) |