From: Michal Jarzabek Date: Fri, 20 May 2016 16:59:19 +0000 (+0100) Subject: osd/OSDCap.h: prevent copying vector in constuctor X-Git-Tag: v11.0.0~385^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d9ef7312a4fe010e551dcd77e83fb430c15bdde6;p=ceph.git osd/OSDCap.h: prevent copying vector in constuctor Signed-off-by: Michal Jarzabek --- diff --git a/src/osd/OSDCap.h b/src/osd/OSDCap.h index 55d7e9cc65b3..cef064e1533e 100644 --- a/src/osd/OSDCap.h +++ b/src/osd/OSDCap.h @@ -120,7 +120,7 @@ struct OSDCap { std::vector grants; OSDCap() {} - explicit OSDCap(std::vector g) : grants(g) {} + explicit OSDCap(std::vector g) : grants(std::move(g)) {} bool allow_all() const; void set_allow_all();