| 203 | } |
| 204 | |
| 205 | UnitConverterPtr UnitConverterRegistry::getUnitConverter(UnitTypeDefPtr def) |
| 206 | { |
| 207 | if (def) |
| 208 | { |
| 209 | auto it = _unitConverters.find(def->getName()); |
| 210 | if (it != _unitConverters.end()) |
| 211 | { |
| 212 | return it->second; |
| 213 | } |
| 214 | } |
| 215 | |
| 216 | return nullptr; |
| 217 | } |
| 218 | |
| 219 | void UnitConverterRegistry::clearUnitConverters() |
| 220 | { |
no test coverage detected