Kaydet (Commit) 259af283 authored tarafından Julien Nabet's avatar Julien Nabet

Fix Consecutive return, break

Change-Id: I7e7586f430b4c33d4bdc786622fcf3680021d517
üst 55786395
...@@ -101,16 +101,12 @@ inline double LwpMargins::GetMarginsValue(const sal_uInt8& nWhichSide) ...@@ -101,16 +101,12 @@ inline double LwpMargins::GetMarginsValue(const sal_uInt8& nWhichSide)
{ {
case MARGIN_LEFT://left case MARGIN_LEFT://left
return LwpTools::ConvertFromUnitsToMetric(m_nLeft); return LwpTools::ConvertFromUnitsToMetric(m_nLeft);
break;
case MARGIN_RIGHT://right case MARGIN_RIGHT://right
return LwpTools::ConvertFromUnitsToMetric(m_nRight); return LwpTools::ConvertFromUnitsToMetric(m_nRight);
break;
case MARGIN_TOP://top case MARGIN_TOP://top
return LwpTools::ConvertFromUnitsToMetric(m_nTop); return LwpTools::ConvertFromUnitsToMetric(m_nTop);
break;
case MARGIN_BOTTOM://bottom case MARGIN_BOTTOM://bottom
return LwpTools::ConvertFromUnitsToMetric(m_nBottom); return LwpTools::ConvertFromUnitsToMetric(m_nBottom);
break;
} }
// FIXME: this is needed to avoid warning: control reaches end of non-void function // FIXME: this is needed to avoid warning: control reaches end of non-void function
// a better solution would be to enum value for the parameter side // a better solution would be to enum value for the parameter side
......
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