Skip to content

Commit

Permalink
Fix CID 1534945 (COPY_INSTEAD_OF_MOVE)
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed Nov 10, 2024
1 parent e83f780 commit 02409f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/classify/intproto.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ INT_TEMPLATES_STRUCT *Classify::CreateIntTemplates(CLASSES FloatProtos,
for (unsigned i = 0; i < fs_size; ++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);

for (ProtoId = 0; ProtoId < FClass->NumProtos; ProtoId++) {
Expand Down

0 comments on commit 02409f5

Please sign in to comment.