| 1137 | { |
| 1138 | public: |
| 1139 | YEntry(CheckStatusWrapper* aStatus, Y* object, CHECK_ENTRY checkAttachment = CHECK_ALL) |
| 1140 | : ref(object->attachment.get()), nextRef(NULL) |
| 1141 | { |
| 1142 | aStatus->init(); |
| 1143 | init(object->next); |
| 1144 | |
| 1145 | if (checkAttachment != CHECK_NONE && !(nextRef.hasData())) |
| 1146 | nextIsEmpty(aStatus, checkAttachment); |
| 1147 | |
| 1148 | if (checkAttachment != CHECK_NONE && ref && ref->savedStatus.getError()) |
| 1149 | { |
| 1150 | const IStatus* err = ref->savedStatus.value(); |
| 1151 | fini(); |
| 1152 | status_exception::raise(err); |
| 1153 | } |
| 1154 | } |
| 1155 | |
| 1156 | ~YEntry() |
| 1157 | { |