From patchwork Thu Feb 7 19:41:51 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Danny Al-Gaaf X-Patchwork-Id: 2113021 Return-Path: X-Original-To: patchwork-ceph-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id DDB7DDFB7B for ; Thu, 7 Feb 2013 19:42:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030268Ab3BGTmV (ORCPT ); Thu, 7 Feb 2013 14:42:21 -0500 Received: from wp188.webpack.hosteurope.de ([80.237.132.195]:33786 "EHLO wp188.webpack.hosteurope.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932179Ab3BGTmI (ORCPT ); Thu, 7 Feb 2013 14:42:08 -0500 Received: from nat.nue.novell.com ([195.135.221.2] helo=darkangel.suse.de); authenticated by wp188.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) id 1U3XMD-0003IZ-S0; Thu, 07 Feb 2013 20:42:05 +0100 From: Danny Al-Gaaf To: ceph-devel@vger.kernel.org Cc: Danny Al-Gaaf , Sage Weil Subject: [PATCH 03/15] src/msg/msg_types.h: pass function parameter by reference Date: Thu, 7 Feb 2013 20:41:51 +0100 Message-Id: <1360266123-28972-4-git-send-email-danny.al-gaaf@bisect.de> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1360266123-28972-1-git-send-email-danny.al-gaaf@bisect.de> References: <1360266123-28972-1-git-send-email-danny.al-gaaf@bisect.de> X-bounce-key: webpack.hosteurope.de; danny.al-gaaf@bisect.de; 1360266128; de4861f6; Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org Fix "Function parameter 'm' should be passed by reference." from cppchecker. Signed-off-by: Danny Al-Gaaf --- src/msg/msg_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/msg/msg_types.h b/src/msg/msg_types.h index 8f3d74b..e80639e 100644 --- a/src/msg/msg_types.h +++ b/src/msg/msg_types.h @@ -142,7 +142,7 @@ inline std::ostream& operator<<(std::ostream& out, const ceph_entity_name& addr) namespace __gnu_cxx { template<> struct hash< entity_name_t > { - size_t operator()( const entity_name_t m ) const + size_t operator()( const entity_name_t &m ) const { return rjhash32(m.type() ^ m.num()); }