Refactoring #1660

Feature #1290: === Core: framework ===

remove global functions

Added by wuttke over 3 years ago. Updated over 3 years ago.

Status:ResolvedStart date:22 Nov 2016
Priority:NormalDue date:
Assignee:wuttke% Done:


Target version:Sprint 33


Now listed under Doxygen tab "Globals".
Some global functions are actually used in one file only => enclose them in an anonymous namespace.
Others are really meant to be global => consider enclosing them in an utility namespace, or refactor them into class member functions.


#1 Updated by herck over 3 years ago

Moving global functions to scope-limited functions is a good refactoring. Moving them to class methods increases the exposure of the class implementation. The other way around is generally preferred.

#2 Updated by wuttke over 3 years ago

  • Status changed from New to Sprint
  • Assignee set to wuttke

#3 Updated by wuttke over 3 years ago

  • Status changed from Sprint to Resolved

Learned from Walter that not all global functions are bad. Unnecessary globals are mostly removed with pull request #88.

Also available in: Atom PDF