Skip to content

Refactor code based on review #58

@hbeni

Description

@hbeni

James Turner was so glad to provide some comments on the code:

https://sourceforge.net/p/flightgear/mailman/flightgear-devel/thread/3C2C3D58-6F58-4949-879E-261978FD24F0%40flightgear.org/#msg37165208

  • Use a class for global stuff
  • prefer <STL container>.empty() over <STL container>.size() > 0
  • make sure pluginDbg is efficient (noop when debug is not active)
  • mumble_onAudioSourceFetched is too long (break down into helper functions; rel Make minimum noise/audio filters depending on radio model #122)
  • use ‘const bool' locals to avoid complex if clauses

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions