| 43 |
if (data == 0) |
if (data == 0) |
| 44 |
{ |
{ |
| 45 |
GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory(); |
GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory(); |
| 46 |
GEDCOMParser::SourceCitation * tmp_data = factory->createSourceCitation(); |
tmp_data = factory->createSourceCitation(); |
| 47 |
} |
} |
| 48 |
_citations.push_back(SmartPtr<SourceCitation>(tmp_data)); |
_citations.push_back(SmartPtr<SourceCitation>(tmp_data)); |
| 49 |
return _citations.back().getPtr(); |
return _citations.back().getPtr(); |
| 55 |
if (data == 0) |
if (data == 0) |
| 56 |
{ |
{ |
| 57 |
GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory(); |
GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory(); |
| 58 |
GEDCOMParser::NoteStructure * tmp_data = factory->createNoteStructure(); |
tmp_data = factory->createNoteStructure(); |
| 59 |
} |
} |
| 60 |
_notes.push_back(SmartPtr<NoteStructure>(tmp_data)); |
_notes.push_back(SmartPtr<NoteStructure>(tmp_data)); |
| 61 |
return _notes.back().getPtr(); |
return _notes.back().getPtr(); |