Refactoring. Fixing static analyzers warnings.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2019-01-14 17:56:05 +02:00
parent 5cb31f77f4
commit 77cb644f90
2 changed files with 4 additions and 4 deletions

View File

@ -165,7 +165,7 @@ Q_GLOBAL_STATIC_WITH_ARGS(const QString, strUserDefined, (QLatin1String("userDef
Q_GLOBAL_STATIC_WITH_ARGS(const QString, strPlacement, (QLatin1String("placement")))
Q_GLOBAL_STATIC_WITH_ARGS(const QString, strCutNumber, (QLatin1String("cutNumber")))
Q_GLOBAL_STATIC_WITH_ARGS(const QString, strQuantity, (QLatin1String("quantity")))
}
} // anonymous namespace
//---------------------------------------------------------------------------------------------------------------------
VPatternConverter::VPatternConverter(const QString &fileName)
@ -1090,12 +1090,12 @@ QSet<QString> VPatternConverter::FixIncrementsToV0_2_0()
QSet<QString> names;
const QDomElement incr = TagIncrementsV0_1_4();
QDomNode domNode = incr.firstChild();
while (domNode.isNull() == false)
while (not domNode.isNull())
{
if (domNode.isElement())
{
QDomElement domElement = domNode.toElement();
if (domElement.isNull() == false)
if (not domElement.isNull())
{
if (domElement.tagName() == *strIncrement)
{

View File

@ -322,7 +322,7 @@ enum class GSizes : unsigned char { ALL,
# define __has_cpp_attribute(x) 0
#endif
#if __cplusplus > 201402L && __has_cpp_attribute(fallthrough)
#if __cplusplus >= 201703L && __has_cpp_attribute(fallthrough)
# define V_FALLTHROUGH [[fallthrough]];
#elif defined(Q_CC_CLANG) && __cplusplus >= 201103L
/* clang's fallthrough annotations are only available starting in C++11. */