Skip to content

Commit

Permalink
[Cleanup] Use a constant reference for content_flags in SetContentFla…
Browse files Browse the repository at this point in the history
  • Loading branch information
Kinglykrab authored Apr 3, 2023
1 parent c9f27d6 commit 6976e27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/content/world_content_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ std::vector<std::string> WorldContentService::GetContentFlagsDisabled()
/**
* @param content_flags
*/
void WorldContentService::SetContentFlags(std::vector<ContentFlagsRepository::ContentFlags> content_flags)
void WorldContentService::SetContentFlags(const std::vector<ContentFlagsRepository::ContentFlags>& content_flags)
{
WorldContentService::content_flags = content_flags;
}
Expand Down
2 changes: 1 addition & 1 deletion common/content/world_content_service.h
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ class WorldContentService {
std::vector<std::string> GetContentFlagsDisabled();
bool IsContentFlagEnabled(const std::string& content_flag);
bool IsContentFlagDisabled(const std::string& content_flag);
void SetContentFlags(std::vector<ContentFlagsRepository::ContentFlags> content_flags);
void SetContentFlags(const std::vector<ContentFlagsRepository::ContentFlags>& content_flags);
void ReloadContentFlags();
WorldContentService * SetExpansionContext();

Expand Down

0 comments on commit 6976e27

Please sign in to comment.