]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
CephBroker.h: use static_cast instead of C-Style cast
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 27 Feb 2013 15:04:57 +0000 (16:04 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 27 Feb 2013 15:04:57 +0000 (16:04 +0100)
Use static_cast<T>() instead of C-Style cast.

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

index 48d7cbdb345e45301bb86cc720591f529461e9fa..6924103221c160beea7b7efbad623a0eab349eb4 100644 (file)
@@ -58,7 +58,7 @@ namespace Hypertable {
   public:
     OpenFileDataCephPtr() : OpenFileDataPtr() { }
     OpenFileDataCephPtr(OpenFileDataCeph *ofdl) : OpenFileDataPtr(ofdl, true) { }
-    OpenFileDataCeph *operator->() const { return (OpenFileDataCeph *)get(); }
+    OpenFileDataCeph *operator->() const { return static_cast<OpenFileDataCeph *>(get()); }
   };
 
   /**