Fix variable uninitialized warning under macos/clang
warning: variable 't' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
This commit is contained in:
@@ -605,7 +605,7 @@ bool ConditionalFormattingPrivate::readCfVo(QXmlStreamReader &reader, XlsxCfVoDa
|
|||||||
t = ConditionalFormatting::VOT_Num;
|
t = ConditionalFormatting::VOT_Num;
|
||||||
else if (type == QLatin1String("percent"))
|
else if (type == QLatin1String("percent"))
|
||||||
t = ConditionalFormatting::VOT_Percent;
|
t = ConditionalFormatting::VOT_Percent;
|
||||||
else if (type == QLatin1String("percentile"))
|
else //if (type == QLatin1String("percentile"))
|
||||||
t = ConditionalFormatting::VOT_Percentile;
|
t = ConditionalFormatting::VOT_Percentile;
|
||||||
|
|
||||||
cfvo.type = t;
|
cfvo.type = t;
|
||||||
|
|||||||
Reference in New Issue
Block a user