[PATCH 7/8] Eliminate ambiguous conversion to cppu::OWeakObject

Kristian Rietveld kris at lanedo.com
Sat Oct 22 01:16:19 PDT 2011


---
 reportdesign/source/core/sdr/ReportDrawPage.cxx |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/reportdesign/source/core/sdr/ReportDrawPage.cxx b/reportdesign/source/core/sdr/ReportDrawPage.cxx
index d34b72d..aa2f6ff 100644
--- a/reportdesign/source/core/sdr/ReportDrawPage.cxx
+++ b/reportdesign/source/core/sdr/ReportDrawPage.cxx
@@ -93,7 +93,7 @@ uno::Reference< drawing::XShape >  OReportDrawPage::_CreateShape( SdrObject *pOb
             else
                 bChangeOrientation = pUnoObj->GetObjIdentifier() == OBJ_DLG_HFIXEDLINE;
             SvxShapeControl* pShape = new SvxShapeControl( pObj );
-            xShape.set(*pShape,uno::UNO_QUERY);
+            xShape.set(static_cast<cppu::OWeakObject*>(static_cast<SvxShape_UnoImplHelper *>(pShape)),uno::UNO_QUERY);
             pShape->setShapeKind(pObj->GetObjIdentifier());
         }
         else if ( pObj->ISA(OCustomShape) )
-- 
1.7.4.4


--------------010307010707000006040308--


More information about the LibreOffice mailing list