fix Warning
This commit is contained in:
1 parent
593c221d23
commit
8345470273
316 files changed
+1246
-929
No files matched your search
+1
-1
@@ -41,8 +41,8 @@ static const bool point3dRegistered = []() {
|
||||
|
||||
Api::Api(QObject *parent)
|
||||
: QObject(parent)
|
||||
, m_lastHitResult(HitResult())
|
||||
, m_logger(TrainingAreaBase::getLogger("VWM.Api"))
|
||||
, m_lastHitResult(HitResult())
|
||||
{
|
||||
Q_UNUSED(point3dRegistered);
|
||||
}
|
||||
|
||||
+3
-5
@@ -294,12 +294,10 @@ bool readBuilding(const QString &fn, Building &cfg)
|
||||
bool readBuilding(const QByteArray &data, Building &cfg)
|
||||
{
|
||||
QDomDocument doc;
|
||||
QString errorMsg;
|
||||
int errorLine;
|
||||
int errorColumn;
|
||||
if (!doc.setContent(data, &errorMsg, &errorLine, &errorColumn))
|
||||
const auto parseResult = doc.setContent(data);
|
||||
if (!parseResult)
|
||||
{
|
||||
ERROR_LOG(logger()) << "Line=" << errorLine << ", Column=" << errorColumn << ": " << errorMsg;
|
||||
ERROR_LOG(logger()) << "Line=" << int(parseResult.errorLine) << ", Column=" << int(parseResult.errorColumn) << ": " << parseResult.errorMessage;
|
||||
return false;
|
||||
}
|
||||
const QDomElement domRoot = doc.documentElement();
|
||||
|
||||
Reference in new issue
Block a user