Points: apply clang-formatting

This commit is contained in:
wmayer
2023-09-01 17:33:18 +02:00
committed by wwmayer
parent dd9c1e1b05
commit 8d24f0c021
32 changed files with 2829 additions and 2359 deletions

View File

@@ -23,7 +23,7 @@
#include "PreCompiled.h"
#ifndef _PreComp_
# include <vector>
#include <vector>
#endif
#include "PointsFeature.h"
@@ -47,18 +47,18 @@ short Feature::mustExecute() const
return 0;
}
App::DocumentObjectExecReturn *Feature::execute()
App::DocumentObjectExecReturn* Feature::execute()
{
this->Points.touch();
return App::DocumentObject::StdReturn;
}
void Feature::Restore(Base::XMLReader &reader)
void Feature::Restore(Base::XMLReader& reader)
{
GeoFeature::Restore(reader);
}
void Feature::RestoreDocFile(Base::Reader &reader)
void Feature::RestoreDocFile(Base::Reader& reader)
{
// This gets only invoked if a points file has been added from Restore()
Points.RestoreDocFile(reader);
@@ -75,8 +75,9 @@ void Feature::onChanged(const App::Property* prop)
try {
Base::Placement p;
p.fromMatrix(this->Points.getTransform());
if (p != this->Placement.getValue())
if (p != this->Placement.getValue()) {
this->Placement.setValue(p);
}
}
catch (const Base::ValueError&) {
}
@@ -87,26 +88,29 @@ void Feature::onChanged(const App::Property* prop)
// ---------------------------------------------------------
namespace App {
namespace App
{
/// @cond DOXERR
PROPERTY_SOURCE_TEMPLATE(Points::FeatureCustom, Points::Feature)
/// @endcond
// explicit template instantiation
template class PointsExport FeatureCustomT<Points::Feature>;
}
}// namespace App
// ---------------------------------------------------------
namespace App {
namespace App
{
/// @cond DOXERR
PROPERTY_SOURCE_TEMPLATE(Points::FeaturePython, Points::Feature)
template<> const char* Points::FeaturePython::getViewProviderName() const {
template<>
const char* Points::FeaturePython::getViewProviderName() const
{
return "PointsGui::ViewProviderPython";
}
/// @endcond
// explicit template instantiation
template class PointsExport FeaturePythonT<Points::Feature>;
}
}// namespace App