Mod: redundant void 2

This commit is contained in:
berniev
2022-08-07 20:05:16 +10:00
committed by wwmayer
parent 311abcc43e
commit da9ebc572f
805 changed files with 3787 additions and 3787 deletions

View File

@@ -104,7 +104,7 @@ void TaskLineDecor::initUi()
ui->cb_Visible->setCurrentIndex(m_visible);
}
void TaskLineDecor::getDefaults(void)
void TaskLineDecor::getDefaults()
{
// Base::Console().Message("TLD::getDefaults()\n");
m_style = LineFormat::getDefEdgeStyle();
@@ -154,35 +154,35 @@ void TaskLineDecor::getDefaults(void)
}
}
void TaskLineDecor::onStyleChanged(void)
void TaskLineDecor::onStyleChanged()
{
m_style = ui->cb_Style->currentIndex() + 1;
applyDecorations();
m_partFeat->requestPaint();
}
void TaskLineDecor::onColorChanged(void)
void TaskLineDecor::onColorChanged()
{
m_color.setValue<QColor>(ui->cc_Color->color());
applyDecorations();
m_partFeat->requestPaint();
}
void TaskLineDecor::onWeightChanged(void)
void TaskLineDecor::onWeightChanged()
{
m_weight = ui->dsb_Weight->value().getValue();
applyDecorations();
m_partFeat->requestPaint();
}
void TaskLineDecor::onVisibleChanged(void)
void TaskLineDecor::onVisibleChanged()
{
m_visible = ui->cb_Visible->currentIndex();
applyDecorations();
m_partFeat->requestPaint();
}
void TaskLineDecor::applyDecorations(void)
void TaskLineDecor::applyDecorations()
{
// Base::Console().Message("TLD::applyDecorations()\n");
for (auto& e: m_edges) {
@@ -291,7 +291,7 @@ void TaskRestoreLines::initUi()
ui->l_Center->setText(QString::number(countInvisibleCenters()));
}
void TaskRestoreLines::onAllPressed(void)
void TaskRestoreLines::onAllPressed()
{
// Base::Console().Message("TRL::onAllPressed()\n");
onGeometryPressed();
@@ -299,7 +299,7 @@ void TaskRestoreLines::onAllPressed(void)
onCenterPressed();
}
void TaskRestoreLines::onGeometryPressed(void)
void TaskRestoreLines::onGeometryPressed()
{
// Base::Console().Message("TRL::onGeometryPressed()\n");
restoreInvisibleGeoms();
@@ -307,7 +307,7 @@ void TaskRestoreLines::onGeometryPressed(void)
ui->l_All->setText(QString::number(countInvisibleLines()));
}
void TaskRestoreLines::onCosmeticPressed(void)
void TaskRestoreLines::onCosmeticPressed()
{
// Base::Console().Message("TRL::onCosmeticPressed()\n");
restoreInvisibleCosmetics();
@@ -315,7 +315,7 @@ void TaskRestoreLines::onCosmeticPressed(void)
ui->l_All->setText(QString::number(countInvisibleLines()));
}
void TaskRestoreLines::onCenterPressed(void)
void TaskRestoreLines::onCenterPressed()
{
// Base::Console().Message("TRL::onCenterPressed()\n");
restoreInvisibleCenters();
@@ -323,7 +323,7 @@ void TaskRestoreLines::onCenterPressed(void)
ui->l_All->setText(QString::number(countInvisibleLines()));
}
int TaskRestoreLines::countInvisibleLines(void)
int TaskRestoreLines::countInvisibleLines()
{
int result = 0;
result += countInvisibleGeoms();
@@ -332,7 +332,7 @@ int TaskRestoreLines::countInvisibleLines(void)
return result;
}
int TaskRestoreLines::countInvisibleGeoms(void)
int TaskRestoreLines::countInvisibleGeoms()
{
int iGeoms = 0;
const std::vector<TechDraw::GeomFormat*> geoms = m_partFeat->GeomFormats.getValues();
@@ -344,7 +344,7 @@ int TaskRestoreLines::countInvisibleGeoms(void)
return iGeoms;
}
int TaskRestoreLines::countInvisibleCosmetics(void)
int TaskRestoreLines::countInvisibleCosmetics()
{
int iCosmos = 0;
const std::vector<TechDraw::CosmeticEdge*> cosmos = m_partFeat->CosmeticEdges.getValues();
@@ -356,7 +356,7 @@ int TaskRestoreLines::countInvisibleCosmetics(void)
return iCosmos++;
}
int TaskRestoreLines::countInvisibleCenters(void)
int TaskRestoreLines::countInvisibleCenters()
{
int iCenter = 0;
const std::vector<TechDraw::CenterLine*> centers = m_partFeat->CenterLines.getValues();
@@ -368,14 +368,14 @@ int TaskRestoreLines::countInvisibleCenters(void)
return iCenter++;
}
void TaskRestoreLines::restoreInvisibleLines(void)
void TaskRestoreLines::restoreInvisibleLines()
{
restoreInvisibleGeoms();
restoreInvisibleCosmetics();
restoreInvisibleCenters();
}
void TaskRestoreLines::restoreInvisibleGeoms(void)
void TaskRestoreLines::restoreInvisibleGeoms()
{
const std::vector<TechDraw::GeomFormat*> geoms = m_partFeat->GeomFormats.getValues();
for (auto& g : geoms) {
@@ -387,7 +387,7 @@ void TaskRestoreLines::restoreInvisibleGeoms(void)
m_parent->apply(false); //don't undo the work we just did
}
void TaskRestoreLines::restoreInvisibleCosmetics(void)
void TaskRestoreLines::restoreInvisibleCosmetics()
{
const std::vector<TechDraw::CosmeticEdge*> cosmos = m_partFeat->CosmeticEdges.getValues();
for (auto& c : cosmos) {
@@ -399,7 +399,7 @@ void TaskRestoreLines::restoreInvisibleCosmetics(void)
m_parent->apply(false); //don't undo the work we just did
}
void TaskRestoreLines::restoreInvisibleCenters(void)
void TaskRestoreLines::restoreInvisibleCenters()
{
const std::vector<TechDraw::CenterLine*> centers = m_partFeat->CenterLines.getValues();
for (auto& c : centers) {