fix Warning

This commit is contained in:
berrux-dev committed 2026-10-03 09:20:13 +02:00
1 parent 593c221d23
commit 8345470273
316 files changed
+1246 -929

No files matched your search

@@ -385,13 +385,10 @@ public:
const QString &backup = toString();
QString errorMsg;
int errorLine;
int errorColumn;
if (!setContent(xml, &errorMsg, &errorLine, &errorColumn))
const auto parseResult = setContent(xml);
if (!parseResult)
{
ERROR_LOG(m_logger) << Q_FUNC_INFO << " parsing xml input failed: " << errorMsg << " at line " << errorLine << " , column " << errorColumn;
ERROR_LOG(m_logger) << Q_FUNC_INFO << " parsing xml input failed: " << parseResult.errorMessage << " at line " << int(parseResult.errorLine) << " , column " << int(parseResult.errorColumn);
setContent(backup);
return false;
}
@@ -406,13 +403,10 @@ public:
const QString &backup = toString();
QString errorMsg;
int errorLine;
int errorColumn;
if (!setContent(device, &errorMsg, &errorLine, &errorColumn))
const auto parseResult = setContent(device);
if (!parseResult)
{
ERROR_LOG(m_logger) << Q_FUNC_INFO << " parsing xml input failed: " << errorMsg << " at line " << errorLine << " , column " << errorColumn;
ERROR_LOG(m_logger) << Q_FUNC_INFO << " parsing xml input failed: " << parseResult.errorMessage << " at line " << int(parseResult.errorLine) << " , column " << int(parseResult.errorColumn);
setContent(backup);
return false;
}