| 81 |
if (data == 0) |
if (data == 0) |
| 82 |
{ |
{ |
| 83 |
GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory(); |
GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory(); |
| 84 |
GEDCOMParser::SourceCitation * tmp_data = factory->createSourceCitation(); |
tmp_data = factory->createSourceCitation(); |
| 85 |
} |
} |
| 86 |
_citations.push_back(SmartPtr<SourceCitation>(tmp_data)); |
_citations.push_back(SmartPtr<SourceCitation>(tmp_data)); |
| 87 |
return _citations.back().getPtr(); |
return _citations.back().getPtr(); |
| 93 |
if (data == 0) |
if (data == 0) |
| 94 |
{ |
{ |
| 95 |
GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory(); |
GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory(); |
| 96 |
GEDCOMParser::NoteStructure * tmp_data = factory->createNoteStructure(); |
tmp_data = factory->createNoteStructure(); |
| 97 |
} |
} |
| 98 |
_notes.push_back(SmartPtr<NoteStructure>(tmp_data)); |
_notes.push_back(SmartPtr<NoteStructure>(tmp_data)); |
| 99 |
return _notes.back().getPtr(); |
return _notes.back().getPtr(); |