[PATCH 8/8] Eliminate ambiguous conversion to cppu::OWeakObject
Kristian Rietveld
kris at lanedo.com
Sat Oct 22 01:17:59 PDT 2011
---
svx/source/form/fmdmod.cxx | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/svx/source/form/fmdmod.cxx b/svx/source/form/fmdmod.cxx
index 807919e..e4ecc37 100644
--- a/svx/source/form/fmdmod.cxx
+++ b/svx/source/form/fmdmod.cxx
@@ -49,7 +49,7 @@ using namespace ::svxform;
else if ( ServiceSpecifier == ::rtl::OUString( ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.drawing.ControlShape")) ) )
{
SdrObject* pObj = new FmFormObj(OBJ_FM_CONTROL);
- xRet = *new SvxShapeControl(pObj);
+ xRet = static_cast<cppu::OWeakObject*>(static_cast<SvxShape_UnoImplHelper*>(new SvxShapeControl(pObj)));
}
if (!xRet.is())
xRet = SvxUnoDrawMSFactory::createInstance(ServiceSpecifier);
--
1.7.4.4
--------------070902020301030302030506--
More information about the LibreOffice
mailing list