Internals: Favor member assignment initialization. No functional change intended.

This commit is contained in:
Wilson Snyder
2022-01-01 11:46:49 -05:00
parent ca42be982c
commit 24a0d2a0c9
25 changed files with 96 additions and 129 deletions
+2 -2
View File
@@ -43,7 +43,7 @@ private:
class VxHolder final {
public:
// MEMBERS
const V3GraphVertex* m_vxp; // [mtask] Vertex
const V3GraphVertex* const m_vxp; // [mtask] Vertex
const uint32_t m_pos; // Sort position
uint32_t m_numBlockingEdges; // Number of blocking edges
// CONSTRUCTORS
@@ -57,7 +57,7 @@ private:
// newly unblocked
bool unblock() {
UASSERT_OBJ(m_numBlockingEdges > 0, vertexp(), "Underflow of blocking edges");
m_numBlockingEdges--;
--m_numBlockingEdges;
return (m_numBlockingEdges == 0);
}
};