Skip to content

Missing const correctness in applyRules #9

@ColePoppleton

Description

@ColePoppleton

The applyRules function takes a non-const reference to a Boid, but only modifies its velocity. The input otherBoids list should also be const. Change the signature to void BoidsSystem::applyRules(Boid& boid, const QList& otherBoids)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions