tdf#163486: PVS: enum type as bool

V768 	The variable 'eType' is of enum type. It is odd that it is used as a variable of a Boolean-type.

Change-Id: I38f0302d8edcaef144f6071dc86500937d305591
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175478
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
This commit is contained in:
Xisco Fauli
2024-10-23 15:32:09 +02:00
parent 95feb2877e
commit dfaee8d8f4
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -23,7 +23,7 @@
enum FUNC_TYPE
{
FT_Return = 0, // End Formula
FT_Return, // End Formula
FT_FuncFix0, // Function, 0 Parameter
FT_FuncFix1, // Function, 0 Parameter
FT_FuncFix2, // Function, 0 Parameter
+1 -1
View File
@@ -426,7 +426,7 @@ void LotusToSc::Convert( std::unique_ptr<ScTokenArray>& rpErg, sal_Int32& rRest
nBytesLeft = rRest;
while( eType ) // != FT_Return (==0)
while( eType != FT_Return )
{
sal_uInt8 nOc;
Read(nOc);