mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 18:13:50 +02:00
C++11: Use member declaration initalizations. No functional change intended.
This commit is contained in:
+6
-6
@@ -57,8 +57,8 @@ private:
|
||||
|
||||
public:
|
||||
TspVertexTmpl(V3Graph* graphp, const T_Key& k)
|
||||
: V3GraphVertex(graphp)
|
||||
, m_key(k) {}
|
||||
: V3GraphVertex{graphp}
|
||||
, m_key{k} {}
|
||||
virtual ~TspVertexTmpl() override {}
|
||||
const T_Key& key() const { return m_key; }
|
||||
|
||||
@@ -79,7 +79,7 @@ public:
|
||||
|
||||
// CONSTRUCTORS
|
||||
TspGraphTmpl()
|
||||
: V3Graph() {}
|
||||
: V3Graph{} {}
|
||||
virtual ~TspGraphTmpl() override {}
|
||||
|
||||
// METHODS
|
||||
@@ -503,9 +503,9 @@ void V3TSP::tspSort(const V3TSP::StateVec& states, V3TSP::StateVec* resultp) {
|
||||
class TspTestState : public V3TSP::TspStateBase {
|
||||
public:
|
||||
TspTestState(unsigned xpos, unsigned ypos)
|
||||
: m_xpos(xpos)
|
||||
, m_ypos(ypos)
|
||||
, m_serial(++m_serialNext) {}
|
||||
: m_xpos{xpos}
|
||||
, m_ypos{ypos}
|
||||
, m_serial{++m_serialNext} {}
|
||||
~TspTestState() {}
|
||||
virtual int cost(const TspStateBase* otherp) const override {
|
||||
return cost(dynamic_cast<const TspTestState*>(otherp));
|
||||
|
||||
Reference in New Issue
Block a user