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

Diff of /ghosts/gedcomparser/src/GEDCOMParser/ChangeDate.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 24  Line 24 
24    
25  void GEDCOMParser::ChangeDate::setDate(std::string const & value)  void GEDCOMParser::ChangeDate::setDate(std::string const & value)
26  {  {
27    _date = value;    if (_date != 0)
28        {
29          delete _date; _date = 0;
30        }
31      _date = new GEDCOMParser::DateManagement::DateValue(value);
32    return;    return;
33  }  }
34    
# Line 45  GEDCOMParser::NoteStructures_t const &GE Line 49  GEDCOMParser::NoteStructures_t const &GE
49    return _notes;    return _notes;
50  }  }
51    
52  std::string const &GEDCOMParser::ChangeDate::getDate(void) const  std::string const GEDCOMParser::ChangeDate::getDate(void) const
53  {  {
54    return _date;    std::string res;
55      if (_date != 0)
56        {
57          res = _date->getDisplayValue();
58        }
59      return res;
60  }  }
61    
62  std::string const &GEDCOMParser::ChangeDate::getTime(void) const  std::string const &GEDCOMParser::ChangeDate::getTime(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