mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-08-27 05:09:02 +08:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user