Kaydet (Commit) d416b09b authored tarafından Joseph Powers's avatar Joseph Powers Kaydeden (comit) Michael Meeks

Some fixes for compile warnings

Removing compile time warnings about enum values not being handled in select statement.
üst f2fb33e9
...@@ -1084,6 +1084,9 @@ void SdrModel::ImpSetUIUnit() ...@@ -1084,6 +1084,9 @@ void SdrModel::ImpSetUIUnit()
// sonstiges // sonstiges
case FUNIT_CUSTOM : break; case FUNIT_CUSTOM : break;
case FUNIT_PERCENT: nUIUnitKomma+=2; break; case FUNIT_PERCENT: nUIUnitKomma+=2; break;
// TODO: Add code to handle the following if needed (added to removed warning)
case FUNIT_CHAR : break;
case FUNIT_LINE : break;
} // switch } // switch
// check if mapping is from metric to inch and adapt // check if mapping is from metric to inch and adapt
......
...@@ -917,6 +917,9 @@ void GetMeterOrInch(FieldUnit eFU, short& rnKomma, long& rnMul, long& rnDiv, boo ...@@ -917,6 +917,9 @@ void GetMeterOrInch(FieldUnit eFU, short& rnKomma, long& rnMul, long& rnDiv, boo
// sonstiges // sonstiges
case FUNIT_CUSTOM : break; case FUNIT_CUSTOM : break;
case FUNIT_PERCENT : nKomma=2; break; case FUNIT_PERCENT : nKomma=2; break;
// TODO: Add code to handle the following (added to remove warning)
case FUNIT_CHAR : break;
case FUNIT_LINE : break;
} // switch } // switch
rnKomma=nKomma; rnKomma=nKomma;
rbMetr=bMetr; rbMetr=bMetr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment