[Libreoffice-commits] .: starmath/inc starmath/source

Miklos Vajna vmiklos at kemper.freedesktop.org
Fri Aug 10 04:08:37 PDT 2012


 starmath/inc/document.hxx    |    2 +-
 starmath/source/document.cxx |    3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

New commits:
commit 9495316659018427ac8d6bc0b6427600ba0ce01e
Author: Miklos Vajna <vmiklos at suse.cz>
Date:   Fri Aug 10 13:06:30 2012 +0200

    SmDocShell::readFormulaOoxml: yes, just void
    
    Change-Id: I2d5bc00c01318a23c604d93ffe6ce9dd0b72b3c2

diff --git a/starmath/inc/document.hxx b/starmath/inc/document.hxx
index 62e26f5..4d98b82 100644
--- a/starmath/inc/document.hxx
+++ b/starmath/inc/document.hxx
@@ -157,7 +157,7 @@ class SmDocShell : public SfxObjectShell, public SfxListener
 
     bool writeFormulaOoxml( ::sax_fastparser::FSHelperPtr pSerializer, oox::core::OoxmlVersion version );
     void writeFormulaRtf(OStringBuffer& rBuffer, rtl_TextEncoding nEncoding);
-    bool readFormulaOoxml( oox::formulaimport::XmlStream& stream );
+    void readFormulaOoxml( oox::formulaimport::XmlStream& stream );
 
 public:
     TYPEINFO();
diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx
index adc8271..da9dd3e 100644
--- a/starmath/source/document.cxx
+++ b/starmath/source/document.cxx
@@ -993,13 +993,12 @@ void SmDocShell::writeFormulaRtf(OStringBuffer& rBuffer, rtl_TextEncoding nEncod
     aEquation.ConvertFromStarMath(rBuffer, nEncoding);
 }
 
-bool SmDocShell::readFormulaOoxml( oox::formulaimport::XmlStream& stream )
+void SmDocShell::readFormulaOoxml( oox::formulaimport::XmlStream& stream )
 {
     RTL_LOGFILE_CONTEXT( aLog, "starmath: SmDocShell::readFormulaOoxml" );
 
     SmOoxmlImport aEquation( stream );
     SetText( aEquation.ConvertToStarMath());
-    return true; // TODO just void?
 }
 
 sal_Bool SmDocShell::SaveCompleted( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& xStorage )


More information about the Libreoffice-commits mailing list