[Libreoffice-commits] core.git: starmath/inc starmath/source
Marcos Paulo de Souza
marcos.souza.org at gmail.com
Mon Jul 22 03:51:41 PDT 2013
starmath/inc/view.hxx | 4 ++--
starmath/source/view.cxx | 9 ++-------
2 files changed, 4 insertions(+), 9 deletions(-)
New commits:
commit ca16c526497ef5a5d1522db74204eed9a0309355
Author: Marcos Paulo de Souza <marcos.souza.org at gmail.com>
Date: Sat Jul 20 19:53:02 2013 -0300
Change function to void, nobody checks the returned data
Change-Id: I9ef7eb7a9c32153f0a886479f65678907969adc5
Reviewed-on: https://gerrit.libreoffice.org/5000
Reviewed-by: Michael Meeks <michael.meeks at suse.com>
Tested-by: Michael Meeks <michael.meeks at suse.com>
diff --git a/starmath/inc/view.hxx b/starmath/inc/view.hxx
index ca81b0e..e307137 100644
--- a/starmath/inc/view.hxx
+++ b/starmath/inc/view.hxx
@@ -260,8 +260,8 @@ protected:
virtual sal_uInt16 SetPrinter(SfxPrinter *pNewPrinter,
sal_uInt16 nDiffFlags = SFX_PRINTER_ALL, bool bIsAPI=false);
- bool Insert( SfxMedium& rMedium );
- bool InsertFrom(SfxMedium &rMedium);
+ void Insert( SfxMedium& rMedium );
+ void InsertFrom(SfxMedium &rMedium);
virtual bool HasPrintOptionsPage() const;
virtual SfxTabPage *CreatePrintOptionsPage(Window *pParent,
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx
index a59ccde..9a291a9 100644
--- a/starmath/source/view.cxx
+++ b/starmath/source/view.cxx
@@ -1451,7 +1451,7 @@ void SmViewShell::PrevError()
}
-bool SmViewShell::Insert( SfxMedium& rMedium )
+void SmViewShell::Insert( SfxMedium& rMedium )
{
SAL_INFO( "starmath", "starmath: SmViewShell::Insert" );
@@ -1489,11 +1489,9 @@ bool SmViewShell::Insert( SfxMedium& rMedium )
rBnd.Invalidate(SID_GAPHIC_SM);
rBnd.Invalidate(SID_TEXT);
}
- return bRet;
}
-
-bool SmViewShell::InsertFrom(SfxMedium &rMedium)
+void SmViewShell::InsertFrom(SfxMedium &rMedium)
{
SAL_INFO( "starmath", "starmath: SmViewShell::InsertFrom" );
@@ -1528,11 +1526,8 @@ bool SmViewShell::InsertFrom(SfxMedium &rMedium)
rBnd.Invalidate(SID_GAPHIC_SM);
rBnd.Invalidate(SID_TEXT);
}
-
- return bSuccess;
}
-
void SmViewShell::Execute(SfxRequest& rReq)
{
SAL_INFO( "starmath", "starmath: SmViewShell::Execute" );
More information about the Libreoffice-commits
mailing list