]> git.donarmstrong.com Git - mothur.git/blobdiff - nameassignment.cpp
added stricter compilation requirements and fixed resulting errors
[mothur.git] / nameassignment.cpp
index 3bcf6f9a968762adede9a4bd434320855b1e2398..c31468c36cbd422a5d8aa72a99cbfc02f7abb5ff 100644 (file)
@@ -52,8 +52,8 @@ ListVector NameAssignment::getListVector(void){
 
 void NameAssignment::print(void){
        try {
-               map<string,int>::iterator it = (*this).begin();
-               for(it;it!=(*this).end();it++){
+               map<string,int>::iterator it;
+               for(it = (*this).begin(); it!=(*this).end(); it++){
                        mothurOut(it->first + "\t" + toString(it->second)); mothurOutEndLine();  //prints out keys and values of the map this.
                }
        }