Fix CID 1534945 (COPY_INSTEAD_OF_MOVE)

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2024-11-10 11:19:34 +01:00
parent e83f78020e
commit 02409f578a

View File

@ -511,7 +511,7 @@ INT_TEMPLATES_STRUCT *Classify::CreateIntTemplates(CLASSES FloatProtos,
for (unsigned i = 0; i < fs_size; ++i) { for (unsigned i = 0; i < fs_size; ++i) {
fs.push_back(FClass->font_set[i]); fs.push_back(FClass->font_set[i]);
} }
IClass->font_set_id = this->fontset_table_.push_back(fs); IClass->font_set_id = this->fontset_table_.push_back(std::move(fs));
AddIntClass(IntTemplates, ClassId, IClass); AddIntClass(IntTemplates, ClassId, IClass);
for (ProtoId = 0; ProtoId < FClass->NumProtos; ProtoId++) { for (ProtoId = 0; ProtoId < FClass->NumProtos; ProtoId++) {