Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parameters/Parameter_impl.hpp

    rddceb1 rb56114  
    2323  value(instance.value.getValidator())
    2424{
    25   value.set(instance.value.getUnvalidated());
     25  value.set(instance.value.value);
    2626}
    2727
     
    171171}
    172172
    173 /** Catch call to value.getAsStringUnvalidated() to add exception information.
    174  *
    175  * @return parameter value as string
    176  */
    177 template<typename T>
    178 inline const std::string Parameter<T>::getAsStringUnvalidated() const throw(ParameterValueException)
    179 {
    180   try {
    181     return value.getAsStringUnvalidated();
    182   } catch(ParameterException &e) {
    183     e << ParameterName(ParameterInterface::getName());
    184     throw;
    185   }
    186 }
    187 
    188173/** Catch call to value.isValid() to add exception information.
    189174 *
     
    273258  try {
    274259    status = status &&
    275         (getUnvalidated() == _instance.getUnvalidated());
     260        (value == _instance.value);
    276261    status = status && (ParameterInterface::getName() == _instance.ParameterInterface::getName());
    277262  } catch(ParameterException &e) {
     
    291276  Parameter<T> *instance = new Parameter<T>(ParameterInterface::getName(), value.getValidator());
    292277  // do not use get, we do not check for validity here
    293   if (value.isSet())
    294     instance->set(value.getUnvalidated());
     278  if (value.ValueSet)
     279    instance->set(value.value);
    295280  return instance;
    296281}
Note: See TracChangeset for help on using the changeset viewer.