Show
Ignore:
Timestamp:
03/21/12 18:36:20 (3 years ago)
Author:
robert
Message:

Ran script to remove trailing spaces and tabs

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osg/Stats.cpp

    r12056 r13041  
    1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2007 Robert Osfield  
     1/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2007 Robert Osfield 
    22 * 
    3  * This library is open source and may be redistributed and/or modified under   
    4  * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or  
     3 * This library is open source and may be redistributed and/or modified under 
     4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 
    55 * (at your option) any later version.  The full license is in LICENSE file 
    66 * included with this distribution, and on the openscenegraph.org website. 
    7  *  
     7 * 
    88 * This library is distributed in the hope that it will be useful, 
    99 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
     10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    1111 * OpenSceneGraph Public License for more details. 
    1212*/ 
     
    4949    if (frameNumber>_latestFrameNumber) 
    5050    { 
    51         // need to advance  
    52          
     51        // need to advance 
     52 
    5353        // first clear the entries up to and including the new frameNumber 
    5454        for(unsigned int i = _latestFrameNumber+1; i<= frameNumber; ++i) 
     
    5757            _attributeMapList[index].clear(); 
    5858        } 
    59          
     59 
    6060        if ( (frameNumber-_baseFrameNumber) >= static_cast<unsigned int>(_attributeMapList.size())) 
    6161        { 
    6262            _baseFrameNumber = (frameNumber/_attributeMapList.size())*_attributeMapList.size(); 
    6363        } 
    64          
     64 
    6565        _latestFrameNumber = frameNumber; 
    66          
     66 
    6767    } 
    6868 
    6969    int index = getIndex(frameNumber); 
    70     if (index<0)  
     70    if (index<0) 
    7171    { 
    7272        OSG_NOTICE<<"Failed to assing valid index for Stats::setAttribute("<<frameNumber<<","<<attributeName<<","<<value<<")"<<std::endl; 
    7373        return false; 
    7474    } 
    75      
     75 
    7676    AttributeMap& attributeMap = _attributeMapList[index]; 
    7777    attributeMap[attributeName] = value; 
     
    8484    int index = getIndex(frameNumber); 
    8585    if (index<0) return false; 
    86      
     86 
    8787    const AttributeMap& attributeMap = _attributeMapList[index]; 
    8888    AttributeMap::const_iterator itr = attributeMap.find(attributeName); 
    8989    if (itr == attributeMap.end()) return false; 
    9090 
    91     value = itr->second;     
     91    value = itr->second; 
    9292    return true; 
    9393} 
     
    104104        std::swap(endFrameNumber, startFrameNumber); 
    105105    } 
    106      
     106 
    107107    OpenThreads::ScopedLock<OpenThreads::Mutex> lock(_mutex); 
    108108 
     
    132132    int index = getIndex(frameNumber); 
    133133    if (index<0) return _invalidAttributeMap; 
    134      
     134 
    135135    return _attributeMapList[index]; 
    136136} 
     
    140140    int index = getIndex(frameNumber); 
    141141    if (index<0) return _invalidAttributeMap; 
    142      
     142 
    143143    return _attributeMapList[index]; 
    144144}