/[ghosts]/ghosts/gedcomparser/src/GEDCOMParser/SourceRecord.cpp
ViewVC logotype

Diff of /ghosts/gedcomparser/src/GEDCOMParser/SourceRecord.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1.2.1 by cpcp, Sun Aug 18 19:49:21 2002 UTC revision 1.1.2.2 by cpcp, Sun Oct 27 11:58:04 2002 UTC
# Line 30  void GEDCOMParser::SourceRecord::Data::E Line 30  void GEDCOMParser::SourceRecord::Data::E
30    
31  void GEDCOMParser::SourceRecord::Data::Event::setDate(std::string const &value)  void GEDCOMParser::SourceRecord::Data::Event::setDate(std::string const &value)
32  {  {
33    _date = value;    if(_date != 0)
34        {
35          delete _date; _date = 0;
36        }
37      _date = new GEDCOMParser::DateManagement::DateValue(value);
38    return;    return;
39  }  }
40    
# Line 210  std::string const & GEDCOMParser::Source Line 214  std::string const & GEDCOMParser::Source
214    return _event;    return _event;
215  }  }
216    
217  std::string const & GEDCOMParser::SourceRecord::Data::Event::getDate(void) const  std::string const GEDCOMParser::SourceRecord::Data::Event::getDate(void) const
218  {  {
219    return _date;    std::string res;
220      if (_date != 0)
221        {
222          res = _date->getDisplayValue();
223        }
224      return res;
225  }  }
226    
227  std::string const & GEDCOMParser::SourceRecord::Data::Event::getPlace(void) const  std::string const & GEDCOMParser::SourceRecord::Data::Event::getPlace(void) const

Legend:
Removed from v.1.1.2.1  
changed lines
  Added in v.1.1.2.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26