Changeset 743


Ignore:
Timestamp:
Jan 15, 2007, 3:12:31 PM (15 years ago)
Author:
Peter
Message:

Changed function to return reference to member variable string. This is needed because function is used to change the member variable in CommandLine?. We should add a test to avoid changes like the previous one that introduced a severe and nasty bug in CommandLine?.

Location:
trunk/yat/utility
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/utility/Option.cc

    r715 r743  
    9292
    9393
    94   std::string Option::value(void)
     94  std::string& Option::value(void)
    9595  {
    9696    return value_;
  • trunk/yat/utility/Option.h

    r715 r743  
    9393
    9494    ///
    95     /// @return argument value
     95    /// @return reference to argument value
    9696    ///
    97     std::string value(void);
     97    std::string& value(void);
    9898
    9999
Note: See TracChangeset for help on using the changeset viewer.