App: Apply clang format (part 1)

This commit is contained in:
wmayer
2024-11-15 17:43:49 +01:00
committed by wwmayer
parent 463cc08f3f
commit 6f5259af26
124 changed files with 6733 additions and 4886 deletions

View File

@@ -24,8 +24,8 @@
#include "PreCompiled.h"
#ifndef _PreComp_
# include <cstdlib>
# include <unordered_set>
#include <cstdlib>
#include <unordered_set>
#endif
#include "DocumentObject.h"
@@ -164,9 +164,12 @@ bool ElementNameComparator::operator()(const MappedName& leftName,
return leftName.size() < rightName.size();
}
HistoryItem::HistoryItem(App::DocumentObject *obj, const Data::MappedName &name)
:obj(obj),tag(0),element(name)
HistoryItem::HistoryItem(App::DocumentObject* obj, const Data::MappedName& name)
: obj(obj)
, tag(0)
, element(name)
{
if(obj)
if (obj) {
tag = obj->getID();
}
}