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:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user