SonarQube warnings.
--HG-- branch : develop
This commit is contained in:
parent
31beeb0756
commit
be83ff5a12
|
@ -57,6 +57,10 @@ void DRW_Header::parseCode(int code, dxfReader *reader){
|
||||||
curr->code = code;
|
curr->code = code;
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
|
case 6:
|
||||||
|
case 7:
|
||||||
|
case 8:
|
||||||
|
case 390:
|
||||||
curr->addString(reader->getUtf8String());
|
curr->addString(reader->getUtf8String());
|
||||||
curr->code = code;
|
curr->code = code;
|
||||||
break;
|
break;
|
||||||
|
@ -68,18 +72,6 @@ void DRW_Header::parseCode(int code, dxfReader *reader){
|
||||||
}
|
}
|
||||||
curr->code = code;
|
curr->code = code;
|
||||||
break;
|
break;
|
||||||
case 6:
|
|
||||||
curr->addString(reader->getUtf8String());
|
|
||||||
curr->code = code;
|
|
||||||
break;
|
|
||||||
case 7:
|
|
||||||
curr->addString(reader->getUtf8String());
|
|
||||||
curr->code = code;
|
|
||||||
break;
|
|
||||||
case 8:
|
|
||||||
curr->addString(reader->getUtf8String());
|
|
||||||
curr->code = code;
|
|
||||||
break;
|
|
||||||
case 10:
|
case 10:
|
||||||
curr->addCoord();
|
curr->addCoord();
|
||||||
curr->setCoordX(reader->getDouble());
|
curr->setCoordX(reader->getDouble());
|
||||||
|
@ -93,41 +85,19 @@ void DRW_Header::parseCode(int code, dxfReader *reader){
|
||||||
curr->code = code;
|
curr->code = code;
|
||||||
break;
|
break;
|
||||||
case 40:
|
case 40:
|
||||||
curr->addDouble(reader->getDouble());
|
|
||||||
curr->code = code;
|
|
||||||
break;
|
|
||||||
case 50:
|
case 50:
|
||||||
curr->addDouble(reader->getDouble());
|
curr->addDouble(reader->getDouble());
|
||||||
curr->code = code;
|
curr->code = code;
|
||||||
break;
|
break;
|
||||||
case 62:
|
case 62:
|
||||||
curr->addInt(reader->getInt32());
|
|
||||||
curr->code = code;
|
|
||||||
break;
|
|
||||||
case 70:
|
case 70:
|
||||||
curr->addInt(reader->getInt32());
|
|
||||||
curr->code = code;
|
|
||||||
break;
|
|
||||||
case 280:
|
case 280:
|
||||||
curr->addInt(reader->getInt32());
|
|
||||||
curr->code = code;
|
|
||||||
break;
|
|
||||||
case 290:
|
case 290:
|
||||||
curr->addInt(reader->getInt32());
|
|
||||||
curr->code = code;
|
|
||||||
break;
|
|
||||||
case 370:
|
case 370:
|
||||||
curr->addInt(reader->getInt32());
|
|
||||||
curr->code = code;
|
|
||||||
break;
|
|
||||||
case 380:
|
case 380:
|
||||||
curr->addInt(reader->getInt32());
|
curr->addInt(reader->getInt32());
|
||||||
curr->code = code;
|
curr->code = code;
|
||||||
break;
|
break;
|
||||||
case 390:
|
|
||||||
curr->addString(reader->getUtf8String());
|
|
||||||
curr->code = code;
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -171,12 +171,12 @@ bool VLockGuard<Guarded>::TryLock(const QString &lockName, int stale, int timeou
|
||||||
{
|
{
|
||||||
lock.reset();
|
lock.reset();
|
||||||
}
|
}
|
||||||
|
#if defined(Q_OS_WIN)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
#if defined(Q_OS_WIN)
|
|
||||||
SetFileAttributesW(lockFile.toStdWString().c_str(), FILE_ATTRIBUTE_HIDDEN);
|
SetFileAttributesW(lockFile.toStdWString().c_str(), FILE_ATTRIBUTE_HIDDEN);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user