← Back to team overview

kicad-developers team mailing list archive

Re: PATCH: change test for invalid numeric strings in VRML files

 

Patch committed.  Thanks!

On 9/26/2016 6:53 AM, Cirilo Bernardo wrote:
> The attached patch changes a test for invalid numeric strings
> in VRML1,2 and X3D files. The long-winded and convoluted
> tests similar in form to:
> 
>     istr >> aSFFloat;
>     tmp.clear();
>     istr >> tmp;
> 
>     if( !tmp.empty() )
> 
> Are replaced with a more obvious and shorter test:
> 
>     istr >> aSFFloat;
>     if( istr.fail() || !istr.eof() )
> 
> - Cirilo
> 
> 
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help   : https://help.launchpad.net/ListHelp
> 



References