Cppcheck warnings.
--HG-- branch : develop
This commit is contained in:
parent
a4d96e7020
commit
5a74c4bf63
|
@ -1593,10 +1593,9 @@ void CreateUnitedDetail(const VToolUnionDetailsInitData &initData, qreal dx, qre
|
||||||
|
|
||||||
initPieceData.detail = initData.data->GetPiece(id);
|
initPieceData.detail = initData.data->GetPiece(id);
|
||||||
initPieceData.width = initPieceData.detail.GetFormulaSAWidth();
|
initPieceData.width = initPieceData.detail.GetFormulaSAWidth();
|
||||||
VToolSeamAllowance *piece = VToolSeamAllowance::Duplicate(initPieceData);
|
if (VToolSeamAllowance *duplicate = VToolSeamAllowance::Duplicate(initPieceData))
|
||||||
if (piece != nullptr)
|
|
||||||
{
|
{
|
||||||
piece->RefreshGeometry(true); // Refresh internal paths
|
duplicate->RefreshGeometry(true); // Refresh internal paths
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
@ -1907,9 +1906,9 @@ QVector<quint32> VToolUnionDetails::GetReferenceObjects() const
|
||||||
case 4://VToolSeamAllowance::TagPlaceLabels
|
case 4://VToolSeamAllowance::TagPlaceLabels
|
||||||
{
|
{
|
||||||
const QDomNodeList children = element.childNodes();
|
const QDomNodeList children = element.childNodes();
|
||||||
for (qint32 i = 0; i < children.size(); ++i)
|
for (qint32 index = 0; index < children.size(); ++index)
|
||||||
{
|
{
|
||||||
const QDomElement record = children.at(i).toElement();
|
const QDomElement record = children.at(index).toElement();
|
||||||
if (not record.isNull() && record.tagName() == VToolSeamAllowance::TagRecord)
|
if (not record.isNull() && record.tagName() == VToolSeamAllowance::TagRecord)
|
||||||
{
|
{
|
||||||
list.append(record.text().toUInt());
|
list.append(record.text().toUInt());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user