From 609a94a56bb5f0a4512bd5f603541671df2248b8 Mon Sep 17 00:00:00 2001 From: Debao Zhang Date: Sat, 4 Jan 2014 23:44:30 +0800 Subject: [PATCH] Fix variable uninitialized warning under macos/clang warning: variable 't' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized] --- src/xlsx/xlsxconditionalformatting.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xlsx/xlsxconditionalformatting.cpp b/src/xlsx/xlsxconditionalformatting.cpp index cb5ecc6..63df48c 100644 --- a/src/xlsx/xlsxconditionalformatting.cpp +++ b/src/xlsx/xlsxconditionalformatting.cpp @@ -605,7 +605,7 @@ bool ConditionalFormattingPrivate::readCfVo(QXmlStreamReader &reader, XlsxCfVoDa t = ConditionalFormatting::VOT_Num; else if (type == QLatin1String("percent")) t = ConditionalFormatting::VOT_Percent; - else if (type == QLatin1String("percentile")) + else //if (type == QLatin1String("percentile")) t = ConditionalFormatting::VOT_Percentile; cfvo.type = t;