You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As reported by Apple clang 12, fix a couple of instances where we make
unnecessary copies in range-based for loops:
loop variable 'entry' is always a copy because the range of type
'const flatbuffers::Vector<flatbuffers::Offset<Collection> >' does
not return a reference [-Wrange-loop-analysis]
for (const auto& entry : *open->entries()) {
^
note: use non-reference type 'const Collections::KVStore::Collection *'
for (const auto& entry : *open->entries()) {
^~~~~~~~~~~~~~~~~~~
Change-Id: I0967c0e74193588c6354d0e06709942a1068e9cf
Reviewed-on: http://review.couchbase.org/c/kv_engine/+/137829
Tested-by: Build Bot <[email protected]>
Reviewed-by: Richard de Mellow <[email protected]>
0 commit comments