summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorMarcos Paulo de Souza <marcos.souza.org@gmail.com>2013-07-20 19:53:02 -0300
committerMichael Meeks <michael.meeks@suse.com>2013-07-22 10:50:57 +0000
commitca16c526497ef5a5d1522db74204eed9a0309355 (patch)
tree7a7bc6f1f099f4937d02d072d52b0684a1c9eca1 /starmath
parent6f4e3a2e272e1ed269efe3ba11915378ffb41a77 (diff)
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@suse.com> Tested-by: Michael Meeks <michael.meeks@suse.com>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/inc/view.hxx4
-rw-r--r--starmath/source/view.cxx9
2 files changed, 4 insertions, 9 deletions
diff --git a/starmath/inc/view.hxx b/starmath/inc/view.hxx
index ca81b0ef931c..e3071373651c 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 a59ccdea275d..9a291a98ff9e 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" );