SonarQube warnings.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-08-21 16:47:17 +03:00
parent 31beeb0756
commit be83ff5a12
2 changed files with 6 additions and 36 deletions

View File

@ -57,6 +57,10 @@ void DRW_Header::parseCode(int code, dxfReader *reader){
curr->code = code;
break;
case 2:
case 6:
case 7:
case 8:
case 390:
curr->addString(reader->getUtf8String());
curr->code = code;
break;
@ -68,18 +72,6 @@ void DRW_Header::parseCode(int code, dxfReader *reader){
}
curr->code = code;
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:
curr->addCoord();
curr->setCoordX(reader->getDouble());
@ -93,41 +85,19 @@ void DRW_Header::parseCode(int code, dxfReader *reader){
curr->code = code;
break;
case 40:
curr->addDouble(reader->getDouble());
curr->code = code;
break;
case 50:
curr->addDouble(reader->getDouble());
curr->code = code;
break;
case 62:
curr->addInt(reader->getInt32());
curr->code = code;
break;
case 70:
curr->addInt(reader->getInt32());
curr->code = code;
break;
case 280:
curr->addInt(reader->getInt32());
curr->code = code;
break;
case 290:
curr->addInt(reader->getInt32());
curr->code = code;
break;
case 370:
curr->addInt(reader->getInt32());
curr->code = code;
break;
case 380:
curr->addInt(reader->getInt32());
curr->code = code;
break;
case 390:
curr->addString(reader->getUtf8String());
curr->code = code;
break;
default:
break;
}

View File

@ -171,12 +171,12 @@ bool VLockGuard<Guarded>::TryLock(const QString &lockName, int stale, int timeou
{
lock.reset();
}
#if defined(Q_OS_WIN)
else
{
#if defined(Q_OS_WIN)
SetFileAttributesW(lockFile.toStdWString().c_str(), FILE_ATTRIBUTE_HIDDEN);
#endif
}
#endif
return res;
}