Coding - Apply modernize-* and readability-* clang-tidy checks (#1207)

- Replaces `push_back(T(...))` with `emplace_back(...)` where applicable.
- Replaces `size() == 0` / `size() != 0` checks with `empty()` / `!empty()`.
- Simplifies trivial constructors/destructors to `= default` and removes redundant `(void)` parameter lists.
This commit is contained in:
JIJINBEI
2026-04-29 04:01:47 +09:00
committed by GitHub
parent 200d1d0b2f
commit 4d64ddc666
24 changed files with 102 additions and 112 deletions
@@ -53,9 +53,7 @@ struct BRepGraph_VersionStamp
//! Default constructor. Creates an invalid stamp (invalid UID, zero counters).
BRepGraph_VersionStamp()
: myUID(),
myRefUID(),
myMutationGen(0),
: myMutationGen(0),
myGeneration(0),
myDomain(Domain::None)
{
@@ -69,7 +67,6 @@ struct BRepGraph_VersionStamp
const uint32_t theMutationGen,
const uint32_t theGeneration)
: myUID(theUID),
myRefUID(),
myMutationGen(theMutationGen),
myGeneration(theGeneration),
myDomain(Domain::Entity)
@@ -83,8 +80,7 @@ struct BRepGraph_VersionStamp
BRepGraph_VersionStamp(const BRepGraph_RefUID& theRefUID,
const uint32_t theMutationGen,
const uint32_t theGeneration)
: myUID(),
myRefUID(theRefUID),
: myRefUID(theRefUID),
myMutationGen(theMutationGen),
myGeneration(theGeneration),
myDomain(Domain::Ref)