| 58 |
if (data == 0) |
if (data == 0) |
| 59 |
{ |
{ |
| 60 |
GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory(); |
GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory(); |
| 61 |
GEDCOMParser::SourceCitation * tmp_data = factory->createSourceCitation(); |
tmp_data = factory->createSourceCitation(); |
| 62 |
} |
} |
| 63 |
_citations.push_back(SmartPtr<SourceCitation>(tmp_data)); |
_citations.push_back(SmartPtr<SourceCitation>(tmp_data)); |
| 64 |
return _citations.back().getPtr(); |
return _citations.back().getPtr(); |
| 70 |
if (data == 0) |
if (data == 0) |
| 71 |
{ |
{ |
| 72 |
GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory(); |
GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory(); |
| 73 |
GEDCOMParser::NoteStructure * tmp_data = factory->createNoteStructure(); |
tmp_data = factory->createNoteStructure(); |
| 74 |
} |
} |
| 75 |
_notes.push_back(SmartPtr<NoteStructure>(tmp_data)); |
_notes.push_back(SmartPtr<NoteStructure>(tmp_data)); |
| 76 |
return _notes.back().getPtr(); |
return _notes.back().getPtr(); |