[Kst] branches/work/kst/portto4/kst/src/datasources/ascii

Peter Kümmel syntheticpp at gmx.net
Mon Jun 7 22:38:56 CEST 2010


Am Samstag, den 05.06.2010, 22:01 +0200 schrieb Barth Netterfield:
> SVN commit 1134940 by netterfield:
> 
> Use defaults for unset settings.
> 
> 
>  M  +1 -1      asciisourceconfig.cpp  
>  M  +5 -2      namedparameter.h  
> 
> 
> --- branches/work/kst/portto4/kst/src/datasources/ascii/asciisourceconfig.cpp #1134939:1134940
> @@ -58,7 +58,7 @@
>    _fileNamePattern(""),
>    _indexInterpretation(Unknown),
>    _columnType(Whitespace),
> -  _columnDelimiter(""),
> +  _columnDelimiter(","),
>    _columnWidth(DEFAULT_COLUMN_WIDTH),
>    _dataLine(0),
>    _readFields(false),
> --- branches/work/kst/portto4/kst/src/datasources/ascii/namedparameter.h #1134939:1134940
> @@ -61,8 +61,11 @@
>    }
>  
>    const T& value() const {
> -    if (!_value_set)
> -      qDebug() << "Using unset value " << Key;
> +    if (!_value_set) {
> +      //qDebug() << "Using unset value " << Key << "  using default: " << _default_value;
> +      return _default_value;
> +    }
> +
>      return _value;
>    }

Then you could also update the Bugs file.

Peter



More information about the Kst mailing list