From a6aa57ff591fdf3d834a7e0b1e9e2ebad1d87c5c Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 14 Jun 2017 13:34:55 +0200 Subject: use ERRCODE_NONE instead of 0 peeling off a small chunk of my ErrCode strong_int conversion Change-Id: Idc89e8496083beed7608cba705cd981139eb7111 Reviewed-on: https://gerrit.libreoffice.org/38777 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svx/source/core/graphichelper.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'svx/source/core/graphichelper.cxx') diff --git a/svx/source/core/graphichelper.cxx b/svx/source/core/graphichelper.cxx index f307083f5245..86b1025e18f7 100644 --- a/svx/source/core/graphichelper.cxx +++ b/svx/source/core/graphichelper.cxx @@ -172,11 +172,11 @@ OUString GraphicHelper::ExportGraphic( const Graphic& rGraphic, const OUString& if( aOut.GetOutStream() && !aOut.GetOutStream()->GetError()) { aOut.GetOutStream()->WriteStream( *aIn.GetInStream() ); - if ( 0 == aIn.GetError() ) + if ( ERRCODE_NONE == aIn.GetError() ) { aOut.Close(); aOut.Commit(); - if ( 0 == aOut.GetError() ) + if ( ERRCODE_NONE == aOut.GetError() ) return sPath; } } -- cgit v1.2.3