Show
Ignore:
Timestamp:
06/25/09 16:06:29 (5 years ago)
Author:
robert
Message:

From Mathias Froehlich, changes from atof to use osg::asciiToFloat() to avoid locale issues with atof

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/branches/OpenSceneGraph-2.8/src/osgDB/DatabasePager.cpp

    r10151 r10413  
    886886    if( (ptr = getenv("OSG_EXPIRY_DELAY")) != 0) 
    887887    { 
    888         _expiryDelay = atof(ptr); 
     888        _expiryDelay = osg::asciiToDouble(ptr); 
    889889        osg::notify(osg::NOTICE)<<"Expiry delay = "<<_expiryDelay<<std::endl; 
    890890    } 
     
    905905        else 
    906906        { 
    907             setReleaseDelay(atof(ptr)); 
     907            setReleaseDelay(osg::asciiToDouble(ptr)); 
    908908        } 
    909909             
     
    944944    if( (ptr = getenv("OSG_MINIMUM_COMPILE_TIME_PER_FRAME")) != 0) 
    945945    { 
    946         _minimumTimeAvailableForGLCompileAndDeletePerFrame = atof(ptr); 
     946        _minimumTimeAvailableForGLCompileAndDeletePerFrame = osg::asciiToDouble(ptr); 
    947947    } 
    948948