Sfoglia il codice sorgente

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

Neal Wilson 11 anni fa
parent
commit
ea1e122c96
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3
    0
      src/typica.w

+ 3
- 0
src/typica.w Vedi File

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…
Annulla
Salva