Fix "(performance) Function parameter 'm' should be passed by reference." from cppchecker. Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@xxxxxxxxx> --- src/msg/Messenger.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msg/Messenger.h b/src/msg/Messenger.h index b75e442..f47c2cf 100644 --- a/src/msg/Messenger.h +++ b/src/msg/Messenger.h @@ -184,7 +184,7 @@ public: * * @param m The name to set. */ - void set_myname(const entity_name_t m) { my_inst.name = m; } + void set_myname(const entity_name_t& m) { my_inst.name = m; } /** * Set the unknown address components for this Messenger. * This is useful if the Messenger doesn't know its full address just by -- 1.8.1.2 -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html