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

Remove redundant game g parameter in two functions #39100

Merged
merged 1 commit into from
Mar 29, 2020

Conversation

AMurkin
Copy link
Contributor

@AMurkin AMurkin commented Mar 29, 2020

Summary

SUMMARY: None

Purpose of change

Parameter g hides a global variable with the same name.
It's also redundant as it represents the same game singleton.

Describe the solution

Remove it. Use the global g where needed.

Describe alternatives you've considered

None.

Testing

Functions called. Monsters placed.

@lgtm-com
Copy link

lgtm-com bot commented Mar 29, 2020

This pull request fixes 2 alerts when merging 14724a4 into 5a52d64 - view on LGTM.com

fixed alerts:

  • 2 for Local variable hides global variable

@ZhilkinSerg ZhilkinSerg added [C++] Changes (can be) made in C++. Previously named `Code` Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style Code: Build Issues regarding different builds and build environments labels Mar 29, 2020
@ZhilkinSerg ZhilkinSerg merged commit f654d5e into CleverRaven:master Mar 29, 2020
@AMurkin AMurkin deleted the remove-redundant-g-param branch March 29, 2020 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C++] Changes (can be) made in C++. Previously named `Code` Code: Build Issues regarding different builds and build environments Code: Infrastructure / Style / Static Analysis Code internal infrastructure and style
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants