summaryrefslogtreecommitdiff
path: root/starmath/source
diff options
context:
space:
mode:
Diffstat (limited to 'starmath/source')
-rw-r--r--starmath/source/document.cxx2
-rw-r--r--starmath/source/mathmlexport.cxx2
-rw-r--r--starmath/source/mathmlimport.cxx2
-rw-r--r--starmath/source/view.cxx4
4 files changed, 5 insertions, 5 deletions
diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx
index 0f43b42072dc..060fa6692de7 100644
--- a/starmath/source/document.cxx
+++ b/starmath/source/document.cxx
@@ -749,7 +749,7 @@ bool SmDocShell::Load( SfxMedium& rMedium )
Reference<css::frame::XModel> xModel(GetModel());
SmXMLImportWrapper aEquation(xModel);
auto nError = aEquation.Import(rMedium);
- bRet = 0 == nError;
+ bRet = ERRCODE_NONE == nError;
SetError(nError);
}
}
diff --git a/starmath/source/mathmlexport.cxx b/starmath/source/mathmlexport.cxx
index ab7c0ac8a9e0..60d7114b94d0 100644
--- a/starmath/source/mathmlexport.cxx
+++ b/starmath/source/mathmlexport.cxx
@@ -463,7 +463,7 @@ sal_uInt32 SmXMLExport::exportDoc(enum XMLTokenEnum eClass)
}
bSuccess=true;
- return 0;
+ return ERRCODE_NONE;
}
void SmXMLExport::ExportContent_()
diff --git a/starmath/source/mathmlimport.cxx b/starmath/source/mathmlimport.cxx
index f426f42a76fe..4e7ac3e87c7b 100644
--- a/starmath/source/mathmlimport.cxx
+++ b/starmath/source/mathmlimport.cxx
@@ -301,7 +301,7 @@ sal_uInt32 SmXMLImportWrapper::ReadThroughComponent(
sal::static_int_cast< sal_uIntPtr >(
xFilterTunnel->getSomething( SmXMLImport::getUnoTunnelId() )));
if ( pFilter && pFilter->GetSuccess() )
- nError = 0;
+ nError = ERRCODE_NONE;
}
catch( xml::sax::SAXParseException& r )
{
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx
index c1dfacf8570f..b68d72e7d866 100644
--- a/starmath/source/view.cxx
+++ b/starmath/source/view.cxx
@@ -1340,7 +1340,7 @@ void SmViewShell::Insert( SfxMedium& rMedium )
// is this a fabulous math package ?
Reference<css::frame::XModel> xModel(pDoc->GetModel());
SmXMLImportWrapper aEquation(xModel); //!! modifies the result of pDoc->GetText() !!
- bRet = 0 == aEquation.Import(rMedium);
+ bRet = ERRCODE_NONE == aEquation.Import(rMedium);
}
}
@@ -1377,7 +1377,7 @@ void SmViewShell::InsertFrom(SfxMedium &rMedium)
{
Reference<css::frame::XModel> xModel(pDoc->GetModel());
SmXMLImportWrapper aEquation(xModel); //!! modifies the result of pDoc->GetText() !!
- bSuccess = 0 == aEquation.Import(rMedium);
+ bSuccess = ERRCODE_NONE == aEquation.Import(rMedium);
}
}