mirror of
https://github.com/taglib/taglib.git
synced 2025-05-27 21:20:26 -04:00
Move temporary into vector instead of copying (#1115)
more efficient. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
bbb8221301
commit
cf352ac7f4
@ -236,7 +236,7 @@ void RIFF::File::setChunkData(const ByteVector &name, const ByteVector &data, bo
|
||||
chunk.offset = offset + 8;
|
||||
chunk.padding = data.size() % 2;
|
||||
|
||||
d->chunks.push_back(chunk);
|
||||
d->chunks.push_back(std::move(chunk));
|
||||
|
||||
// Update the global size.
|
||||
|
||||
@ -338,7 +338,7 @@ void RIFF::File::read()
|
||||
}
|
||||
}
|
||||
|
||||
d->chunks.push_back(chunk);
|
||||
d->chunks.push_back(std::move(chunk));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user