diff --git a/src/tools/syncqt/main.cpp b/src/tools/syncqt/main.cpp index 4567f7c4ad..4a82f9b64c 100644 --- a/src/tools/syncqt/main.cpp +++ b/src/tools/syncqt/main.cpp @@ -882,6 +882,9 @@ public: break; } + if (buffer.empty()) + return; + std::smatch match; std::string symbol; if (std::regex_match(buffer, match, VersionScriptSymbolRegex) && match[2].str().empty()) @@ -1103,14 +1106,15 @@ public: } line.clear(); - if (buffer.empty()) - continue; scannerDebug() << m_currentFilename << ": " << buffer << std::endl; if (m_currentFileType & PrivateHeader) { parseVersionScriptContent(buffer, result); } + if (buffer.empty()) + continue; + ++linesProcessed; bool skipSymbols =