Skip to content

Commit

Permalink
Reserve memory for inputWires in SetInputCount_()
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusTomlinson committed Jan 5, 2024
1 parent 0220ae8 commit add4d76
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Component.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,8 @@ void Component::SetInputCount_( int inputCount, const std::vector<std::string>&
{
inputBus.SetSignalCount( inputCount );
}

p->inputWires.reserve( inputCount );
}

void Component::SetOutputCount_( int outputCount, const std::vector<std::string>& outputNames )
Expand Down

0 comments on commit add4d76

Please sign in to comment.