sw: code simplification

XEmbeddedObject already implements XClassifiedObject which contains a
getClassID method.

Change-Id: Ifbeed343493208fff3704b21ee484fd92c570974
This commit is contained in:
Jacobo Aragunde Pérez
2014-02-26 10:58:33 +01:00
parent 50b1dce863
commit 72d9fa114a

View File

@@ -3506,9 +3506,7 @@ void DocxAttributeOutput::WritePostponedChart()
bool DocxAttributeOutput::WriteOLEMath( const SdrObject*, const SwOLENode& rOLENode, const Size& )
{
uno::Reference < embed::XEmbeddedObject > xObj(const_cast<SwOLENode&>(rOLENode).GetOLEObj().GetOleRef());
sal_Int64 nAspect = rOLENode.GetAspect();
svt::EmbeddedObjectRef aObjRef( xObj, nAspect );
SvGlobalName aObjName(aObjRef->getClassID());
SvGlobalName aObjName(xObj->getClassID());
if( !SotExchange::IsMath(aObjName) )
return false;