| 48 |
if (data == 0) |
if (data == 0) |
| 49 |
{ |
{ |
| 50 |
GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory(); |
GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory(); |
| 51 |
GEDCOMParser::NoteStructure * tmp_data = factory->createNoteStructure(); |
tmp_data = factory->createNoteStructure(); |
| 52 |
} |
} |
| 53 |
_notes.push_back(SmartPtr<NoteStructure>(tmp_data)); |
_notes.push_back(SmartPtr<NoteStructure>(tmp_data)); |
| 54 |
return _notes.back().getPtr(); |
return _notes.back().getPtr(); |
| 60 |
if (data == 0) |
if (data == 0) |
| 61 |
{ |
{ |
| 62 |
GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory(); |
GEDCOMParser::GEDCOMFactory * factory = GEDCOMParser::GEDCOMFactoryAccessor::getFactory(); |
| 63 |
GEDCOMParser::SourceCitation * tmp_data = factory->createSourceCitation(); |
tmp_data = factory->createSourceCitation(); |
| 64 |
} |
} |
| 65 |
_citations.push_back(SmartPtr<SourceCitation>(tmp_data)); |
_citations.push_back(SmartPtr<SourceCitation>(tmp_data)); |
| 66 |
return _citations.back().getPtr(); |
return _citations.back().getPtr(); |