Changeset 988 for cpp/frams/genetics/genoconv.cpp
- Timestamp:
- 07/09/20 00:13:20 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/genetics/genoconv.cpp
r981 r988 107 107 for (; gk = (GenoConverter*)converters(i); i++) 108 108 { 109 if ((in != Geno:: UNKNOWN_FORMAT) && (in != gk->in_format)) continue;110 if ((out != Geno:: UNKNOWN_FORMAT) && (out != gk->out_format)) continue;109 if ((in != Geno::FORMAT_UNKNOWN) && (in != gk->in_format)) continue; 110 if ((out != Geno::FORMAT_UNKNOWN) && (out != gk->out_format)) continue; 111 111 if ((enabled != -1) && (enabled != gk->enabled)) continue; 112 112 if ((name) && (strcmp(name, gk->name))) continue; … … 168 168 { 169 169 if (converter_missing) *converter_missing = false; 170 return Geno("", Geno:: INVALID_FORMAT, "", "Invalid genotype cannot be converted");170 return Geno("", Geno::FORMAT_INVALID, "", "Invalid genotype cannot be converted"); 171 171 } 172 172 int mapavail; … … 176 176 { 177 177 if (converter_missing) *converter_missing = true; 178 return Geno("", Geno:: INVALID_FORMAT, "", "Converter not found");178 return Geno("", Geno::FORMAT_INVALID, "", "Converter not found"); 179 179 } 180 180 if (converter_missing) *converter_missing = false; … … 193 193 { 194 194 string t = ssprintf("f%s->f%s conversion failed (%s)", gk->in_format.c_str(), gk->out_format.c_str(), gk->name); 195 return Geno("", Geno:: INVALID_FORMAT, "", t.c_str());195 return Geno("", Geno::FORMAT_INVALID, "", t.c_str()); 196 196 } 197 197 if (mapavail)
Note: See TracChangeset
for help on using the changeset viewer.