DNAOp: Fix clang -Wrange-loop-analysis errors

This commit is contained in:
Luke Street 2020-09-18 16:22:35 -04:00
parent 5489a25fbe
commit 4e29ba7d8f
1 changed files with 2 additions and 2 deletions

View File

@ -500,7 +500,7 @@ struct Write {
static std::enable_if_t<std::is_same_v<T, bool>> Do(const PropId& id, std::vector<T>& vector, const S& count,
StreamT& w) {
/* libc++ specializes vector<bool> as a bitstream */
for (const T& v : vector)
for (const T v : vector)
w.writeBool(v);
}
static void Do(const PropId& id, std::unique_ptr<atUint8[]>& buf, size_t count, StreamT& w) {
@ -732,7 +732,7 @@ struct WriteYaml {
StreamT& w) {
/* libc++ specializes vector<bool> as a bitstream */
if (auto __v = w.enterSubVector(id.name))
for (const T& v : vector)
for (const T v : vector)
w.writeBool(v);
}
static void Do(const PropId& id, std::unique_ptr<atUint8[]>& buf, size_t count, StreamT& w) {