Sketcher: Reformat to current clang-format standard
This commit is contained in:
committed by
Chris Hennes
parent
50513232ac
commit
fcedce3c42
@@ -96,12 +96,15 @@ public:
|
||||
bool xfree = isXDoF();
|
||||
bool yfree = isYDoF();
|
||||
|
||||
if (xfree && yfree)
|
||||
if (xfree && yfree) {
|
||||
return 2;
|
||||
else if (xfree || yfree)
|
||||
}
|
||||
else if (xfree || yfree) {
|
||||
return 1;
|
||||
else
|
||||
}
|
||||
else {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
void setStatus(ParameterStatus status)
|
||||
@@ -156,8 +159,9 @@ public:
|
||||
|
||||
void setStatus(int index, ParameterStatus status)
|
||||
{
|
||||
if (index >= int(pstatus.size()))
|
||||
if (index >= int(pstatus.size())) {
|
||||
pstatus.resize(index + 1, ParameterStatus::Dependent);
|
||||
}
|
||||
|
||||
pstatus.at(index) = status;
|
||||
};
|
||||
@@ -327,8 +331,9 @@ public:
|
||||
{
|
||||
int npoles = pstatus.size() / 3;
|
||||
|
||||
if (poleindex < npoles)
|
||||
if (poleindex < npoles) {
|
||||
return pstatus[poleindex * 2];
|
||||
}
|
||||
|
||||
THROWM(Base::IndexError, "Pole index out of range")
|
||||
}
|
||||
@@ -337,8 +342,9 @@ public:
|
||||
{
|
||||
int npoles = pstatus.size() / 3;
|
||||
|
||||
if (poleindex < npoles)
|
||||
if (poleindex < npoles) {
|
||||
return pstatus[poleindex * 2 + 1];
|
||||
}
|
||||
|
||||
THROWM(Base::IndexError, "Pole index out of range")
|
||||
}
|
||||
@@ -347,8 +353,9 @@ public:
|
||||
{
|
||||
int nweights = pstatus.size() / 3;
|
||||
|
||||
if (weightindex < nweights)
|
||||
if (weightindex < nweights) {
|
||||
return pstatus[nweights * 2 + weightindex];
|
||||
}
|
||||
|
||||
THROWM(Base::IndexError, "Weight index out of range")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user