diff --git a/src/ImportXlsx.cpp b/src/ImportXlsx.cpp index 7f7c04a..60c7898 100644 --- a/src/ImportXlsx.cpp +++ b/src/ImportXlsx.cpp @@ -57,8 +57,8 @@ std::pair ImportXlsx::getColumnNames( if (!isSheetNameValid(getSheetNames().second, sheetName)) return {false, {}}; - const auto it{columnNames_.constFind(sheetName)}; - if ((it == columnNames_.constEnd()) && (!analyzeSheet(sheetName))) + if (const auto it{columnNames_.constFind(sheetName)}; + (it == columnNames_.constEnd()) && (!analyzeSheet(sheetName))) return {false, {}}; return {true, columnNames_.value(sheetName)}; @@ -225,8 +225,7 @@ bool ImportXlsx::moveToSecondRow(QuaZipFile& zipFile, std::pair ImportXlsx::getCount( const QString& sheetName, const QHash& countMap) { - const auto it{countMap.find(sheetName)}; - if (it != countMap.end()) + if (const auto it{countMap.find(sheetName)}; it != countMap.end()) return {true, it.value()}; if (!isCommonDataOk())