Refactoring.

Code style.
This commit is contained in:
Roman Telezhynskyi 2023-07-08 10:33:08 +03:00
parent 83c914f47d
commit 3e2a44d2ab

View File

@ -31,7 +31,6 @@
#include <QCheckBox>
#include <QVector>
#include "../ifc/ifcdef.h"
#include "../vpatterndb/vcontainer.h"
#include "../vpatterndb/vpiece.h"
#include "../vpatterndb/vpiecenode.h"
@ -114,15 +113,9 @@ auto DialogUnionDetails::CheckDetail(const quint32 &idDetail) const -> bool
{
return false;
}
const VPiece det = data->GetPiece(idDetail);
if (det.GetPath().CountNodes() >= 3 && det.GetPath().ListNodePoint().size() >= 2)
{
return true;
}
else
{
return false;
}
return det.GetPath().CountNodes() >= 3 && det.GetPath().ListNodePoint().size() >= 2;
}
//---------------------------------------------------------------------------------------------------------------------
@ -133,8 +126,7 @@ auto DialogUnionDetails::CheckDetail(const quint32 &idDetail) const -> bool
* @param idDetail id detail
* @param index index of edge
*/
void DialogUnionDetails::ChoosedDetail(const quint32 &id, const SceneObject &type, quint32 &idDetail,
vsizetype &index)
void DialogUnionDetails::ChoosedDetail(const quint32 &id, const SceneObject &type, quint32 &idDetail, vsizetype &index)
{
if (idDetail == NULL_ID)
{