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

minor code cleanup in world.cpp #2543

Merged
merged 3 commits into from
Mar 9, 2024

Conversation

Gamemechanicwow
Copy link
Contributor

🍰 Pullrequest

Proof

  • None

Issues

Minor code cleanup for world.cpp

  • return type in World::GetQueuedSessionPos changed from int32 to uint32 - as the value is used as a uint32 both inside and outside the function
  • deletes holder in World::BanAccount to prevent possible memoryleak
  • no "else" after return
  • use bool for boolean settings
  • unify parameter name for UpdateRealmCharCount in .cpp and .h

How2Test

  • None

Todo / Checklist

  • None

return BAN_SYNTAX_ERROR;
}

db->DelayQueryHolderUnsafe(&banHandler, &BanAccountHandler::HandleAccountSelectResult, holder);
delete holder;
Copy link
Contributor

@ratkosrb ratkosrb Mar 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The function called right before this says "Delay" in the name. Are you sure it's not storing and using the holder later on?

@ratkosrb
Copy link
Contributor

ratkosrb commented Mar 9, 2024

You added a gigantic temporary file in your last commit.

@ratkosrb ratkosrb merged commit b882713 into vmangos:development Mar 9, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants