App: Fix const correctness

This commit is contained in:
wmayer
2024-12-23 23:55:00 +01:00
parent b3a1fd9676
commit 90d8c34631
3 changed files with 8 additions and 8 deletions

View File

@@ -68,7 +68,7 @@ bool DatumElement::getCameraAlignmentDirection(Base::Vector3d& direction, const
return true;
}
App::LocalCoordinateSystem* DatumElement::getLCS()
App::LocalCoordinateSystem* DatumElement::getLCS() const
{
auto inList = getInList();
for (auto* obj : inList) {
@@ -81,9 +81,9 @@ App::LocalCoordinateSystem* DatumElement::getLCS()
return nullptr;
}
bool DatumElement::isOriginFeature()
bool DatumElement::isOriginFeature() const
{
auto lcs = getLCS();
const auto* lcs = getLCS();
return lcs ? lcs->isOrigin() : false;
}