[Libreoffice-commits] .: svx/source
Michael Meeks
mmeeks at kemper.freedesktop.org
Fri Oct 15 10:26:31 PDT 2010
svx/source/svdraw/svdmodel.cxx | 3 +++
svx/source/svdraw/svdtrans.cxx | 3 +++
2 files changed, 6 insertions(+)
New commits:
commit eec61ff5f60f0560484e2350ba650b8fd21df592
Author: Joseph Powers <jpowers27 at cox.net>
Date: Thu Oct 14 22:16:35 2010 -0700
Some fixes for compile warnings
Removing compile time warnings about enum values not being handled in select statement.
diff --git a/svx/source/svdraw/svdmodel.cxx b/svx/source/svdraw/svdmodel.cxx
index 81e594f..9c47bed 100644
--- a/svx/source/svdraw/svdmodel.cxx
+++ b/svx/source/svdraw/svdmodel.cxx
@@ -1084,6 +1084,9 @@ void SdrModel::ImpSetUIUnit()
// sonstiges
case FUNIT_CUSTOM : 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
// check if mapping is from metric to inch and adapt
diff --git a/svx/source/svdraw/svdtrans.cxx b/svx/source/svdraw/svdtrans.cxx
index e479d89..0b9905d 100644
--- a/svx/source/svdraw/svdtrans.cxx
+++ b/svx/source/svdraw/svdtrans.cxx
@@ -917,6 +917,9 @@ void GetMeterOrInch(FieldUnit eFU, short& rnKomma, long& rnMul, long& rnDiv, boo
// sonstiges
case FUNIT_CUSTOM : 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
rnKomma=nKomma;
rbMetr=bMetr;
More information about the Libreoffice-commits
mailing list