diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2011-11-07 19:49:05 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2011-11-08 15:35:37 +0100 |
commit | 26e1bc1dd13bf33d60b9f70262627094498fca09 (patch) | |
tree | f35ff6fb7321bedd41da9b3989fa971f84e3bad4 /sw | |
parent | a23ee867ea419665769342f485f0144f188952de (diff) |
simplify code
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/filter/ww8/docxattributeoutput.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sw/source/filter/ww8/docxattributeoutput.cxx b/sw/source/filter/ww8/docxattributeoutput.cxx index abe68e83de39..0181c6167a54 100644 --- a/sw/source/filter/ww8/docxattributeoutput.cxx +++ b/sw/source/filter/ww8/docxattributeoutput.cxx @@ -2313,10 +2313,7 @@ void DocxAttributeOutput::WritePostponedMath() if( m_postponedMath == NULL ) return; uno::Reference < embed::XEmbeddedObject > xObj(const_cast<SwOLENode*>(m_postponedMath)->GetOLEObj().GetOleRef()); - sal_Int64 nAspect = m_postponedMath->GetAspect(); - svt::EmbeddedObjectRef aObjRef( xObj, nAspect ); - - uno::Reference< uno::XInterface > xInterface( aObjRef->getComponent(), uno::UNO_QUERY ); + uno::Reference< uno::XInterface > xInterface( xObj->getComponent(), uno::UNO_QUERY ); if( OoxmlFormulaExportBase* formulaexport = dynamic_cast< OoxmlFormulaExportBase* >( xInterface.get())) formulaexport->writeFormulaOoxml( m_pSerializer, GetExport().GetFilter().getVersion()); else |