From: Danny Al-Gaaf Date: Thu, 28 Feb 2013 13:45:03 +0000 (+0100) Subject: CDentry.h: use static_cast instead of C-Style cast X-Git-Tag: v0.59~61^2~9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4f1cd469fc2cd7567d499bcf952a91b30df3a5b1;p=ceph.git CDentry.h: use static_cast instead of C-Style cast Use static_cast() instead of C-Style cast. Signed-off-by: Danny Al-Gaaf --- diff --git a/src/mds/CDentry.h b/src/mds/CDentry.h index d07ef066acd..7990b0ce915 100644 --- a/src/mds/CDentry.h +++ b/src/mds/CDentry.h @@ -98,7 +98,7 @@ public: static const int EXPORT_NONCE = 1; bool is_lt(const MDSCacheObject *r) const { - return *this < *(CDentry*)r; + return *this < *static_cast(r); } public: