summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
Diffstat (limited to 'vcl')
-rw-r--r--vcl/qa/cppunit/graphicfilter/filters-test.cxx2
-rw-r--r--vcl/source/edit/texteng.cxx4
-rw-r--r--vcl/source/gdi/dibtools.cxx12
-rw-r--r--vcl/source/gdi/impgraph.cxx4
-rw-r--r--vcl/source/gdi/print.cxx2
-rw-r--r--vcl/source/gdi/print3.cxx2
-rw-r--r--vcl/workben/icontest.cxx2
7 files changed, 14 insertions, 14 deletions
diff --git a/vcl/qa/cppunit/graphicfilter/filters-test.cxx b/vcl/qa/cppunit/graphicfilter/filters-test.cxx
index 78477d4846e4..0b28c706fd84 100644
--- a/vcl/qa/cppunit/graphicfilter/filters-test.cxx
+++ b/vcl/qa/cppunit/graphicfilter/filters-test.cxx
@@ -57,7 +57,7 @@ bool VclFiltersTest::load(const OUString &,
{
SvFileStream aFileStream(rURL, StreamMode::READ);
Graphic aGraphic;
- return mGraphicFilter.ImportGraphic(aGraphic, rURL, aFileStream) == 0;
+ return mGraphicFilter.ImportGraphic(aGraphic, rURL, aFileStream) == ERRCODE_NONE;
}
void VclFiltersTest::testScaling()
diff --git a/vcl/source/edit/texteng.cxx b/vcl/source/edit/texteng.cxx
index cc50317037bc..78d2e1dbb656 100644
--- a/vcl/source/edit/texteng.cxx
+++ b/vcl/source/edit/texteng.cxx
@@ -2449,7 +2449,7 @@ bool TextEngine::Read( SvStream& rInput, const TextSelection* pSel )
SetUpdateMode( bUpdate );
FormatAndUpdate( GetActiveView() );
- return rInput.GetError() == 0;
+ return rInput.GetError() == ERRCODE_NONE;
}
bool TextEngine::Write( SvStream& rOutput, const TextSelection* pSel, bool bHTML )
@@ -2535,7 +2535,7 @@ bool TextEngine::Write( SvStream& rOutput, const TextSelection* pSel, bool bHTML
rOutput.WriteLine( "</HTML>" );
}
- return rOutput.GetError() == 0;
+ return rOutput.GetError() == ERRCODE_NONE;
}
void TextEngine::RemoveAttribs( sal_uInt32 nPara )
diff --git a/vcl/source/gdi/dibtools.cxx b/vcl/source/gdi/dibtools.cxx
index a4792ca4b1a6..723b9b273bf1 100644
--- a/vcl/source/gdi/dibtools.cxx
+++ b/vcl/source/gdi/dibtools.cxx
@@ -313,7 +313,7 @@ bool ImplReadDIBPalette(SvStream& rIStm, BitmapPalette& rPal, bool bQuad)
rPal[i] = aPalColor;
}
- return( rIStm.GetError() == 0UL );
+ return rIStm.GetError() == ERRCODE_NONE;
}
namespace
@@ -760,7 +760,7 @@ bool ImplReadDIBBits(SvStream& rIStm, DIBV5Header& rHeader, BitmapWriteAccess& r
}
}
- return( rIStm.GetError() == 0UL );
+ return rIStm.GetError() == ERRCODE_NONE;
}
bool ImplReadDIBBody(SvStream& rIStm, Bitmap& rBmp, AlphaMask* pBmpAlpha, sal_uLong nOffset, bool bIsMask, bool bMSOFormat)
@@ -1038,7 +1038,7 @@ bool ImplReadDIBFileHeader( SvStream& rIStm, sal_uLong& rOffset )
rIStm.SeekRel( 8 ); // we are on bfSize member of BITMAPFILEHEADER, forward to bfOffBits
rIStm.ReadUInt32( nTmp32 ); // read bfOffBits
rOffset = nTmp32 - 14UL; // adapt offset by sizeof(BITMAPFILEHEADER)
- bRet = ( rIStm.GetError() == 0UL );
+ bRet = rIStm.GetError() == ERRCODE_NONE;
}
if ( rOffset >= nStreamLength )
@@ -1075,7 +1075,7 @@ bool ImplWriteDIBPalette( SvStream& rOStm, BitmapReadAccess& rAcc )
rOStm.WriteBytes( pEntries.get(), nPalSize );
- return( rOStm.GetError() == 0UL );
+ return rOStm.GetError() == ERRCODE_NONE;
}
bool ImplWriteRLE( SvStream& rOStm, BitmapReadAccess& rAcc, bool bRLE4 )
@@ -1188,7 +1188,7 @@ bool ImplWriteRLE( SvStream& rOStm, BitmapReadAccess& rAcc, bool bRLE4 )
rOStm.WriteUChar( 0 );
rOStm.WriteUChar( 1 );
- return( rOStm.GetError() == 0UL );
+ return rOStm.GetError() == ERRCODE_NONE;
}
bool ImplWriteDIBBits(SvStream& rOStm, BitmapReadAccess& rAcc, BitmapReadAccess* pAccAlpha, sal_uLong nCompression, sal_uInt32& rImageSize)
@@ -1581,7 +1581,7 @@ bool ImplWriteDIBFileHeader(SvStream& rOStm, BitmapReadAccess& rAcc, bool bUseDI
rOStm.WriteUInt16( 0 );
rOStm.WriteUInt32( nOffset );
- return( rOStm.GetError() == 0UL );
+ return rOStm.GetError() == ERRCODE_NONE;
}
bool ImplReadDIB(
diff --git a/vcl/source/gdi/impgraph.cxx b/vcl/source/gdi/impgraph.cxx
index b31dbf4828ba..caed1663c776 100644
--- a/vcl/source/gdi/impgraph.cxx
+++ b/vcl/source/gdi/impgraph.cxx
@@ -1027,7 +1027,7 @@ bool ImpGraphic::ImplReadEmbedded( SvStream& rIStm )
if( meType == GraphicType::Bitmap || meType == GraphicType::GdiMetafile )
{
ReadImpGraphic( rIStm, *this );
- bRet = ( rIStm.GetError() == 0UL );
+ bRet = rIStm.GetError() == ERRCODE_NONE;
}
else if( sal::static_int_cast<sal_uLong>(meType) >= SYS_WINMETAFILE
&& sal::static_int_cast<sal_uLong>(meType) <= SYS_MACMETAFILE )
@@ -1050,7 +1050,7 @@ bool ImpGraphic::ImplReadEmbedded( SvStream& rIStm )
if( nType && GraphicConverter::Import( rIStm, aSysGraphic, nCvtType ) == ERRCODE_NONE )
{
*this = ImpGraphic( aSysGraphic.GetGDIMetaFile() );
- bRet = ( rIStm.GetError() == 0UL );
+ bRet = rIStm.GetError() == ERRCODE_NONE;
}
else
meType = GraphicType::Default;
diff --git a/vcl/source/gdi/print.cxx b/vcl/source/gdi/print.cxx
index e88691a34b50..09f7ff9b6d88 100644
--- a/vcl/source/gdi/print.cxx
+++ b/vcl/source/gdi/print.cxx
@@ -482,7 +482,7 @@ void Printer::ImplInitData()
mbDevOutput = false;
meOutDevType = OUTDEV_PRINTER;
mbDefPrinter = false;
- mnError = 0;
+ mnError = ERRCODE_NONE;
mnCurPage = 0;
mnCurPrintPage = 0;
mnPageQueueSize = 0;
diff --git a/vcl/source/gdi/print3.cxx b/vcl/source/gdi/print3.cxx
index de8609f38b71..1adca043062c 100644
--- a/vcl/source/gdi/print3.cxx
+++ b/vcl/source/gdi/print3.cxx
@@ -722,7 +722,7 @@ bool Printer::StartJob( const OUString& i_rJobName, std::shared_ptr<vcl::Printer
if( bError )
{
- mnError = mpPrinter ? ImplSalPrinterErrorCodeToVCL(mpPrinter->GetErrorCode()) : 0;
+ mnError = mpPrinter ? ImplSalPrinterErrorCodeToVCL(mpPrinter->GetErrorCode()) : ERRCODE_NONE;
if ( !mnError )
mnError = PRINTER_GENERALERROR;
i_xController->setJobState( mnError == PRINTER_ABORT
diff --git a/vcl/workben/icontest.cxx b/vcl/workben/icontest.cxx
index a321d5392dc6..216ab9e4b890 100644
--- a/vcl/workben/icontest.cxx
+++ b/vcl/workben/icontest.cxx
@@ -94,7 +94,7 @@ void MyWorkWindow::LoadGraphic( const OUString& sImageFile )
{
SvFileStream aFileStream( sImageFile, StreamMode::READ );
GraphicFilter aGraphicFilter(false);
- if (aGraphicFilter.ImportGraphic(maGraphic, sImageFile, aFileStream) != 0)
+ if (aGraphicFilter.ImportGraphic(maGraphic, sImageFile, aFileStream) != ERRCODE_NONE)
{
SAL_WARN("vcl.icontest", "Could not import image '" << sImageFile << "'");
return;