mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 10:31:50 +00:00
fix: optimization: PVS-Studio warning V820
Replaced copying of the 'sources' variable with move semantics to improve performance. By moving instead of copying, we avoid unnecessary copying of data and enhance efficiency. Reported by: PVS-Studio Signed-off-by: Vyacheslav Ivanov <islavaivanov76@gmail.com>
This commit is contained in:
parent
26ff0f133a
commit
74a2dd7f6d
1 changed files with 1 additions and 1 deletions
|
|
@ -8,7 +8,7 @@
|
|||
PacksManager::PacksManager() = default;
|
||||
|
||||
void PacksManager::setSources(std::vector<fs::path> sources) {
|
||||
this->sources = sources;
|
||||
this->sources = std::move(sources);
|
||||
}
|
||||
|
||||
void PacksManager::scan() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue