Просмотр исходного кода

Suppress compiler warnings and add debug output for nonsensical unit conversions in typica.w

Neal Wilson 11 лет назад
Родитель
Сommit
ea1e122c96
1 измененных файлов: 3 добавлений и 0 удалений
  1. 3
    0
      src/typica.w

+ 3
- 0
src/typica.w Просмотреть файл

7677
                 case Units::Unitless:
7677
                 case Units::Unitless:
7678
                     display(QString("%1").arg(number.setNum(temperature.temperature(), 'f', 0)));
7678
                     display(QString("%1").arg(number.setNum(temperature.temperature(), 'f', 0)));
7679
                     break;
7679
                     break;
7680
+                default:
7681
+					qDebug() << "Warning: Attempting to convert a non-temperature unit to a temperature unit";
7682
+					break;
7680
             }
7683
             }
7681
             break;
7684
             break;
7682
     }
7685
     }

Загрузка…
Отмена
Сохранить