Kaydet (Commit) 72d9fa11 authored tarafından Jacobo Aragunde Pérez's avatar Jacobo Aragunde Pérez

sw: code simplification

XEmbeddedObject already implements XClassifiedObject which contains a
getClassID method.

Change-Id: Ifbeed343493208fff3704b21ee484fd92c570974
üst 50b1dce8
...@@ -3506,9 +3506,7 @@ void DocxAttributeOutput::WritePostponedChart() ...@@ -3506,9 +3506,7 @@ void DocxAttributeOutput::WritePostponedChart()
bool DocxAttributeOutput::WriteOLEMath( const SdrObject*, const SwOLENode& rOLENode, const Size& ) bool DocxAttributeOutput::WriteOLEMath( const SdrObject*, const SwOLENode& rOLENode, const Size& )
{ {
uno::Reference < embed::XEmbeddedObject > xObj(const_cast<SwOLENode&>(rOLENode).GetOLEObj().GetOleRef()); uno::Reference < embed::XEmbeddedObject > xObj(const_cast<SwOLENode&>(rOLENode).GetOLEObj().GetOleRef());
sal_Int64 nAspect = rOLENode.GetAspect(); SvGlobalName aObjName(xObj->getClassID());
svt::EmbeddedObjectRef aObjRef( xObj, nAspect );
SvGlobalName aObjName(aObjRef->getClassID());
if( !SotExchange::IsMath(aObjName) ) if( !SotExchange::IsMath(aObjName) )
return false; return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment