diff options
author | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2013-02-05 23:52:23 +0100 |
---|---|---|
committer | Gary Lowell <glowell@inktank.com> | 2013-02-05 19:29:10 -0800 |
commit | fc4a1fd168253e141a3dc8f025c753a2244df7be (patch) | |
tree | 942601a77e2f25ae37792dcaf6eb3e785f26ff17 | |
parent | 9eff2ee13dc03f245a11c91f4ed7d5bc15c55aef (diff) | |
download | ceph-fc4a1fd168253e141a3dc8f025c753a2244df7be.tar.gz |
WorkQueue.h: fix cast
Replace C-style pointer casting with correct static_cast<>().
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
-rw-r--r-- | src/common/WorkQueue.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/WorkQueue.h b/src/common/WorkQueue.h index 9fb215b9188..b19a6a20cb3 100644 --- a/src/common/WorkQueue.h +++ b/src/common/WorkQueue.h @@ -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: |