Show
Ignore:
Timestamp:
06/19/09 13:00:33 (6 years ago)
Author:
robert
Message:

Added clears to various vectors being passed in to get*() methods.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgViewer/CompositeViewer.cpp

    r10098 r10365  
    403403void CompositeViewer::getScenes(Scenes& scenes, bool onlyValid) 
    404404{ 
     405    scenes.clear(); 
     406 
    405407    typedef std::set<osgViewer::Scene*> SceneSet; 
    406408    SceneSet sceneSet; 
     
    424426void CompositeViewer::getViews(Views& views, bool onlyValid) 
    425427{ 
     428    views.clear(); 
     429 
    426430    for(RefViews::iterator vitr = _views.begin(); 
    427431        vitr != _views.end(); 
     
    434438void CompositeViewer::getAllThreads(Threads& threads, bool onlyActive) 
    435439{ 
     440    threads.clear(); 
     441 
    436442    OperationThreads operationThreads; 
    437443    getOperationThreads(operationThreads);