Clang warning.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-08-30 10:16:40 +03:00
parent d62a8d03f2
commit 4ed21eb4d5

View File

@ -2066,7 +2066,7 @@ QMap<int, QString> VAbstractPattern::GetMaterials(const QDomElement &element) co
{
if (tagMaterial.tagName() == TagMaterial)
{
const int number = GetParametrUInt(tagMaterial, AttrNumber, "0");
const int number = static_cast<int>(GetParametrUInt(tagMaterial, AttrNumber, "0"));
const QString name = GetParametrEmptyString(tagMaterial, AttrName);
if (number > 0 && number <= userMaterialPlaceholdersQuantity)