From 1b78b83fbdd16a83780085bc528f7fc733fae5fe Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 29 Sep 2011 23:02:56 +0100 Subject: tweak ambiguities for F-15 gcc 4.6.1-9 --- reportdesign/source/filter/xml/xmlExport.cxx | 16 ++++++++-------- reportdesign/source/ui/report/ReportController.cxx | 3 ++- reportdesign/source/ui/report/ReportSection.cxx | 6 +++++- 3 files changed, 15 insertions(+), 10 deletions(-) (limited to 'reportdesign') diff --git a/reportdesign/source/filter/xml/xmlExport.cxx b/reportdesign/source/filter/xml/xmlExport.cxx index 98909e81b18d..9d986e5ac868 100644 --- a/reportdesign/source/filter/xml/xmlExport.cxx +++ b/reportdesign/source/filter/xml/xmlExport.cxx @@ -1201,15 +1201,15 @@ void ORptExport::exportAutoStyle(XPropertySet* _xProp,const Reference(PROPERTY_BORDERRIGHT)); } else { sBorderProp = PROPERTY_BORDERRIGHT; - aProps.push_back(PROPERTY_BORDERLEFT); + aProps.push_back(static_cast(PROPERTY_BORDERLEFT)); } - aProps.push_back(PROPERTY_BORDERTOP); - aProps.push_back(PROPERTY_BORDERBOTTOM); + aProps.push_back(static_cast(PROPERTY_BORDERTOP)); + aProps.push_back(static_cast(PROPERTY_BORDERBOTTOM)); } else // horizontal { @@ -1217,15 +1217,15 @@ void ORptExport::exportAutoStyle(XPropertySet* _xProp,const Reference(PROPERTY_BORDERTOP)); } else { sBorderProp = PROPERTY_BORDERTOP; - aProps.push_back(PROPERTY_BORDERBOTTOM); + aProps.push_back(static_cast(PROPERTY_BORDERBOTTOM)); } - aProps.push_back(PROPERTY_BORDERRIGHT); - aProps.push_back(PROPERTY_BORDERLEFT); + aProps.push_back(static_cast(PROPERTY_BORDERRIGHT)); + aProps.push_back(static_cast(PROPERTY_BORDERLEFT)); } xBorderProp->setPropertyValue(sBorderProp,uno::makeAny(aValue)); diff --git a/reportdesign/source/ui/report/ReportController.cxx b/reportdesign/source/ui/report/ReportController.cxx index d8aa5ebafd95..974a2f4804f6 100644 --- a/reportdesign/source/ui/report/ReportController.cxx +++ b/reportdesign/source/ui/report/ReportController.cxx @@ -258,7 +258,8 @@ void lcl_getReportControlFormat(const Sequence< PropertyValue >& aArgs, } else { - _rControlsFormats.push_back(xReportControlFormat); + uno::Reference xInterface = xReportControlFormat; + _rControlsFormats.push_back(xInterface); } if ( !_xWindow.is() ) diff --git a/reportdesign/source/ui/report/ReportSection.cxx b/reportdesign/source/ui/report/ReportSection.cxx index 9f72392b4782..a88e1884a185 100644 --- a/reportdesign/source/ui/report/ReportSection.cxx +++ b/reportdesign/source/ui/report/ReportSection.cxx @@ -727,7 +727,11 @@ void OReportSection::fillControlModelSelection(::std::vector< uno::Reference< un const SdrObject* pDlgEdObj = rMarkList.GetMark(i)->GetMarkedSdrObj(); const OObjectBase* pObj = dynamic_cast(pDlgEdObj); if ( pObj ) - _rSelection.push_back(pObj->getReportComponent()); + { + uno::Reference xInterface = + pObj->getReportComponent(); + _rSelection.push_back(xInterface); + } } } } -- cgit