Improved loplugin:redundantcast static_cast handling: reportdesign

Change-Id: Ifd1c46b077df5b73e3fcba699e8d598e38664840
This commit is contained in:
Stephan Bergmann
2017-06-02 09:36:56 +02:00
parent c72d788410
commit c71d9f3bb1

View File

@@ -1159,15 +1159,15 @@ void ORptExport::exportAutoStyle(XPropertySet* _xProp,const Reference<XFormatted
if ( !aPos.X )
{
sBorderProp = PROPERTY_BORDERLEFT;
aProps.push_back(static_cast<const OUString&>(PROPERTY_BORDERRIGHT));
aProps.push_back(PROPERTY_BORDERRIGHT);
}
else
{
sBorderProp = PROPERTY_BORDERRIGHT;
aProps.push_back(static_cast<const OUString&>(PROPERTY_BORDERLEFT));
aProps.push_back(PROPERTY_BORDERLEFT);
}
aProps.push_back(static_cast<const OUString&>(PROPERTY_BORDERTOP));
aProps.push_back(static_cast<const OUString&>(PROPERTY_BORDERBOTTOM));
aProps.push_back(PROPERTY_BORDERTOP);
aProps.push_back(PROPERTY_BORDERBOTTOM);
}
else // horizontal
{
@@ -1175,15 +1175,15 @@ void ORptExport::exportAutoStyle(XPropertySet* _xProp,const Reference<XFormatted
if ( (aPos.Y + aSize.Height) == nSectionHeight )
{
sBorderProp = PROPERTY_BORDERBOTTOM;
aProps.push_back(static_cast<const OUString&>(PROPERTY_BORDERTOP));
aProps.push_back(PROPERTY_BORDERTOP);
}
else
{
sBorderProp = PROPERTY_BORDERTOP;
aProps.push_back(static_cast<const OUString&>(PROPERTY_BORDERBOTTOM));
aProps.push_back(PROPERTY_BORDERBOTTOM);
}
aProps.push_back(static_cast<const OUString&>(PROPERTY_BORDERRIGHT));
aProps.push_back(static_cast<const OUString&>(PROPERTY_BORDERLEFT));
aProps.push_back(PROPERTY_BORDERRIGHT);
aProps.push_back(PROPERTY_BORDERLEFT);
}
xBorderProp->setPropertyValue(sBorderProp,uno::makeAny(aValue));