]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
WorkQueue.h: fix cast
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 6 Feb 2013 11:02:44 +0000 (12:02 +0100)
committerSage Weil <sage@inktank.com>
Wed, 6 Feb 2013 16:42:03 +0000 (08:42 -0800)
Replace C-style pointer casting with correct static_cast<>().

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

index 9fb215b918843440ea90a158211fcd095ecbe66f..b19a6a20cb35962832e865c20616ded9fb85ce25 100644 (file)
@@ -251,10 +251,10 @@ public:
       return (void *)_dequeue();
     }
     void _void_process(void *p, TPHandle &handle) {
-      _process((T *)p, handle);
+      _process(static_cast<T *>(p), handle);
     }
     void _void_process_finish(void *p) {
-      _process_finish((T *)p);
+      _process_finish(static_cast<T *>(p));
     }
 
   public: