Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memmap/PowerPC: Remove unnecessary const on function declaration parameters #5032

Merged
merged 2 commits into from
Mar 7, 2017

Commits on Mar 6, 2017

  1. Memmap: Remove unnecessary const on function declaration parameters

    const, when used on value type parameters in the declaration,
    is superfluous. This doesn't really convey any information to take note
    of when using the function. This only matters in the definition when you
    want to prevent accidental modification.
    
    e.g.
    
    // Header
    void CalculateSomething(int lhs, int rhs);
    
    // Definition
    void CalculateSomething(const int lhs, const int rhs)
    {
      // lhs and rhs can't accidentally be modified
    }
    lioncash committed Mar 6, 2017
    Configuration menu
    Copy the full SHA
    248a04f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4d1a4ba View commit details
    Browse the repository at this point in the history