mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-20 00:51:28 +00:00
[Cleanup] Use a constant reference for content_flags in SetContentFlags() (#3196)
# Notes - This is more performant. - https://pvs-studio.com/en/docs/warnings/v813/ - https://pvs-studio.com/en/docs/warnings/v820/
This commit is contained in:
parent
c9f27d6f90
commit
6976e27501
@ -120,7 +120,7 @@ std::vector<std::string> WorldContentService::GetContentFlagsDisabled()
|
|||||||
/**
|
/**
|
||||||
* @param content_flags
|
* @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;
|
WorldContentService::content_flags = content_flags;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -167,7 +167,7 @@ public:
|
|||||||
std::vector<std::string> GetContentFlagsDisabled();
|
std::vector<std::string> GetContentFlagsDisabled();
|
||||||
bool IsContentFlagEnabled(const std::string& content_flag);
|
bool IsContentFlagEnabled(const std::string& content_flag);
|
||||||
bool IsContentFlagDisabled(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();
|
void ReloadContentFlags();
|
||||||
WorldContentService * SetExpansionContext();
|
WorldContentService * SetExpansionContext();
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user