From d75cf4661d58bd54aa1fb3f20168de122120f7ae Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Thu, 28 Feb 2013 14:58:38 +0100 Subject: [PATCH] CInode.h: use static_cast instead of C-Style cast Use static_cast() instead of C-Style cast. Change CInode* to const, since it never changed. Signed-off-by: Danny Al-Gaaf --- src/mds/CInode.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mds/CInode.h b/src/mds/CInode.h index 843edf8efd6f3..5e77cd327a98c 100644 --- a/src/mds/CInode.h +++ b/src/mds/CInode.h @@ -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(r); return ino() < o->ino() || (ino() == o->ino() && last < o->last); } -- 2.39.5