]> git.donarmstrong.com Git - mothur.git/blobdiff - shared.cpp
fixing minor bugs
[mothur.git] / shared.cpp
index c8a1d5e8e6a061edf8cdf00a6f2025b6b8a8c53c..36dbbb1117067253b04150cbf5a4c6f592906861 100644 (file)
@@ -3,7 +3,7 @@
  *  Dotur
  *
  *  Created by Sarah Westcott on 12/5/08.
- *  Copyright 2008 Schloss Lab Umass Amherst. All rights reserved.
+ *  Copyright 2008 Schloss Lab UMASS Amherst. All rights reserved.
  *
  */
 
@@ -16,11 +16,12 @@ Shared::Shared(){
 }
 
 /**************************************************************************************************/
-void Shared::getSharedVectors(int index, SharedListVector* list) {
+void Shared::getSharedVectors(SharedListVector* list) {
                string label, group;
                int i,j;
                label = list->getLabel();
                
+               for (it = sharedGroups.begin(); it != sharedGroups.end(); it++) {  delete it->second;  }
                sharedGroups.clear();  //removes old info.
                
                //initalize sharedGroups