]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
CDentry.h: use static_cast instead of C-Style cast
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 28 Feb 2013 13:45:03 +0000 (14:45 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 28 Feb 2013 13:45:03 +0000 (14:45 +0100)
Use static_cast<T>() instead of C-Style cast.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/mds/CDentry.h

index d07ef066acd0b0f256b097218f815e2561a4f024..7990b0ce91584e2f5035087beadda26e3f4f45c0 100644 (file)
@@ -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<const CDentry*>(r);
   }
 
 public: