]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
CInode.h: use static_cast instead of C-Style cast
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 28 Feb 2013 13:58:38 +0000 (14:58 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 28 Feb 2013 13:58:38 +0000 (14:58 +0100)
Use static_cast<const T>() instead of C-Style cast. Change CInode* to
const, since it never changed.

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

index 843edf8efd6f3e43d70e02bf72a1bd747276a95c..5e77cd327a98cedeb17d4b874c022470595e70d3 100644 (file)
@@ -499,7 +499,7 @@ private:
   CInode *get_parent_inode();
   
   bool is_lt(const MDSCacheObject *r) const {
-    CInode *o = (CInode*)r;
+    const CInode *o = static_cast<const CInode*>(r);
     return ino() < o->ino() ||
       (ino() == o->ino() && last < o->last);
   }