Kaydet (Commit) b2870f65 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

WaE: add explicit braces to avoid dangling else

Change-Id: I8def1c7859359b76a1258db82776177d65346c05
üst 554a0ca6
...@@ -3605,7 +3605,9 @@ void DocxAttributeOutput::WritePostponedFormControl(const SdrObject* pObject) ...@@ -3605,7 +3605,9 @@ void DocxAttributeOutput::WritePostponedFormControl(const SdrObject* pObject)
uno::Sequence<beans::PropertyValue> aGrabBag; uno::Sequence<beans::PropertyValue> aGrabBag;
uno::Reference<beans::XPropertySet> xShapePropertySet(pFormObj->getUnoShape(), uno::UNO_QUERY); uno::Reference<beans::XPropertySet> xShapePropertySet(pFormObj->getUnoShape(), uno::UNO_QUERY);
if (xShapePropertySet->getPropertyValue(UNO_NAME_MISC_OBJ_INTEROPGRABBAG) >>= aGrabBag) if (xShapePropertySet->getPropertyValue(UNO_NAME_MISC_OBJ_INTEROPGRABBAG) >>= aGrabBag)
{
for (sal_Int32 i=0; i < aGrabBag.getLength(); ++i) for (sal_Int32 i=0; i < aGrabBag.getLength(); ++i)
{
if (aGrabBag[i].Name == "DateFormat") if (aGrabBag[i].Name == "DateFormat")
aGrabBag[i].Value >>= sDateFormat; aGrabBag[i].Value >>= sDateFormat;
else if (aGrabBag[i].Name == "Locale") else if (aGrabBag[i].Name == "Locale")
...@@ -3620,7 +3622,8 @@ void DocxAttributeOutput::WritePostponedFormControl(const SdrObject* pObject) ...@@ -3620,7 +3622,8 @@ void DocxAttributeOutput::WritePostponedFormControl(const SdrObject* pObject)
aOriginalDate.SetMonth(aUNODate.Month); aOriginalDate.SetMonth(aUNODate.Month);
aOriginalDate.SetYear(aUNODate.Year); aOriginalDate.SetYear(aUNODate.Year);
} }
}
}
uno::Reference<beans::XPropertySet> xPropertySet(xControlModel, uno::UNO_QUERY); uno::Reference<beans::XPropertySet> xPropertySet(xControlModel, uno::UNO_QUERY);
OString sDate; OString sDate;
......
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