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

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

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

revision 1.2 by cpcp, Mon Sep 23 13:36:56 2002 UTC revision 1.3 by cpcp, Tue Nov 12 21:25:21 2002 UTC
# Line 65  void GEDCOMParser::Header::setDest(std:: Line 65  void GEDCOMParser::Header::setDest(std::
65    
66  void GEDCOMParser::Header::setDate(std::string const & value)  void GEDCOMParser::Header::setDate(std::string const & value)
67  {  {
68    _date = value;    if (_date != 0)
69        {
70          delete _date; _date = 0;
71        }
72      _date = new GEDCOMParser::DateManagement::DateValue(value);
73    return;    return;
74  }  }
75    
# Line 183  std::string const &GEDCOMParser::Header: Line 187  std::string const &GEDCOMParser::Header:
187    return _dest;    return _dest;
188  }  }
189    
190  std::string const &GEDCOMParser::Header::getDate(void) const  std::string const GEDCOMParser::Header::getDate(void) const
191  {  {
192    return _date;    std::string res;
193      if (_date != 0)
194        {
195          res = _date->getDisplayValue();
196        }
197      return res;
198  }  }
199  std::string const &GEDCOMParser::Header::getTime(void) const  std::string const &GEDCOMParser::Header::getTime(void) const
200  {  {

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

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