Fix trailing newlines and minor typo fixes

This commit is contained in:
luzpaz
2024-07-23 12:13:36 +00:00
committed by wwmayer
parent a19f4dd398
commit bc150dc73c
19 changed files with 29 additions and 29 deletions

View File

@@ -127,7 +127,7 @@ void MeasureLength::onChanged(const App::Property* prop)
if (prop == &Elements) {
recalculateLength();
}
MeasureBase::onChanged(prop);
}
@@ -142,7 +142,7 @@ Base::Placement MeasureLength::getPlacement() {
App::SubObjectT subject{objects.front(), subElements.front().c_str()};
auto info = getMeasureInfo(subject);
if (!info || !info->valid) {
return {};
}

View File

@@ -104,7 +104,7 @@ bool MeasureRadius::isPrioritizedSelection(const App::MeasureSelection& selectio
//! Set properties from first item in selection. assumes a valid selection.
void MeasureRadius::parseSelection(const App::MeasureSelection& selection) {
auto element = selection.front();
auto objT = element.object;
auto objT = element.object;
std::vector<std::string> subElementList { objT.getSubName() };
Element.setValue(objT.getObject(), subElementList);
@@ -132,7 +132,7 @@ void MeasureRadius::onChanged(const App::Property* prop)
if (prop == &Element) {
recalculateRadius();
}
MeasureBase::onChanged(prop);
}

View File

@@ -64,7 +64,7 @@ SET(MeasureGui_SRCS
DlgPrefsMeasureAppearanceImp.ui
DlgPrefsMeasureAppearanceImp.cpp
DlgPrefsMeasureAppearanceImp.h
)
SET(MeasureGuiTaskDlgs_SRCS

View File

@@ -31,7 +31,7 @@ class MeasureBasePython(ABC):
@abstractclassmethod
def isPrioritySelection(cls, selection):
"""Returns True if creation of this measurement should be priorized over other measurements for the given selection"""
"""Returns True if creation of this measurement should be prioritized over other measurements for the given selection"""
pass
@abstractclassmethod