]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon: Fix ranged-construct warning
authorAdam C. Emerson <aemerson@redhat.com>
Mon, 7 Mar 2022 23:46:04 +0000 (18:46 -0500)
committerMykola Golub <mgolub@suse.com>
Fri, 1 Mar 2024 12:09:15 +0000 (14:09 +0200)
commit24e44a110ee1c0a9fe5bdb083f2cfa24742d9425
tree9b935f93e0442ee98a25cae9a58de4f6c97275aa
parent9576d6c24d7bb97e74ebf594db2d1fd9c1832f77
mon: Fix ranged-construct warning

In the case of an uint32_t there's no benefit to a reference so just
remove the const and make the copy.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
(cherry picked from commit da789f40cb72eb126741e229f4b0906b6b6dff52)
src/mon/OSDMonitor.cc