use std::move() to avoid extra copy of temporaries

This commit is contained in:
Axel Kohlmeyer
2024-03-10 16:19:22 -04:00
parent e7d77b6244
commit 5b16cf9773
3 changed files with 8 additions and 7 deletions

View File

@ -289,7 +289,7 @@ bigint ReaderNative::read_header(double box[3][3], int &boxinfo, int &triclinic,
labelline = line + strlen("ITEM: ATOMS ");
}
Tokenizer tokens(labelline);
Tokenizer tokens(std::move(labelline));
std::map<std::string, int> labels;
nwords = 0;