All of lore.kernel.org
 help / color / mirror / Atom feed
From: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
To: ceph-devel@vger.kernel.org
Cc: Danny Al-Gaaf <dalgaaf@suse.de>, Sage Weil <sage@inktank.com>
Subject: [PATCH 8/8] msg/Message.h: fix C-style pointer casting
Date: Tue,  5 Feb 2013 23:52:30 +0100	[thread overview]
Message-ID: <1360104750-16098-9-git-send-email-danny.al-gaaf@bisect.de> (raw)
In-Reply-To: <1360104750-16098-1-git-send-email-danny.al-gaaf@bisect.de>

Replace C-style pointer casting with correct static_cast<>().

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
---
 src/msg/Message.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/msg/Message.h b/src/msg/Message.h
index 5bdd4d4..5e2b4f5 100644
--- a/src/msg/Message.h
+++ b/src/msg/Message.h
@@ -188,7 +188,7 @@ public:
   }
 
   Connection *get() {
-    return (Connection *)RefCountedObject::get();
+    return static_cast<Connection *>(RefCountedObject::get());
   }
 
   void set_priv(RefCountedObject *o) {
@@ -329,7 +329,7 @@ public:
   }
 
   Message *get() {
-    return (Message *)RefCountedObject::get();
+    return static_cast<Message *>(RefCountedObject::get());
   }
 
 protected:
-- 
1.8.1.2


  parent reply	other threads:[~2013-02-05 22:52 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-05 22:52 [PATCH 0/8] fix some issues from cppchecker/clang++ Danny Al-Gaaf
2013-02-05 22:52 ` [PATCH 1/8] WorkQueue.h: fix cast Danny Al-Gaaf
2013-02-05 22:52 ` [PATCH 2/8] ceph_crypto.cc: remove unused shutdown() outside crypto ifdef's Danny Al-Gaaf
2013-02-05 22:52 ` [PATCH 3/8] obj_bencher.cc: use vector instead of VLA's Danny Al-Gaaf
2013-02-05 22:52 ` [PATCH 4/8] include/buffer.h: fix operator= Danny Al-Gaaf
2013-02-06  5:47   ` Sage Weil
2013-02-05 22:52 ` [PATCH 5/8] include/types.h: change operator<< function parameter Danny Al-Gaaf
2013-02-05 22:52 ` [PATCH 6/8] include/xlist.h: fix C-style pointer casting Danny Al-Gaaf
2013-02-05 22:52 ` [PATCH 7/8] messages/MOSDRepScrub.h: initialize member variable in constructor Danny Al-Gaaf
2013-02-06  5:50   ` Sage Weil
2013-02-05 22:52 ` Danny Al-Gaaf [this message]
2013-02-06  3:50 ` [PATCH 0/8] fix some issues from cppchecker/clang++ Gary Lowell
2013-02-06  5:51 ` Sage Weil
2013-02-06 11:02 [PATCH v2 " Danny Al-Gaaf
2013-02-06 11:02 ` [PATCH 8/8] msg/Message.h: fix C-style pointer casting Danny Al-Gaaf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1360104750-16098-9-git-send-email-danny.al-gaaf@bisect.de \
    --to=danny.al-gaaf@bisect.de \
    --cc=ceph-devel@vger.kernel.org \
    --cc=dalgaaf@suse.de \
    --cc=sage@inktank.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.