瀏覽代碼

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

Neal Wilson 10 年之前
父節點
當前提交
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
     }

Loading…
取消
儲存