Message ID | 1360104750-16098-2-git-send-email-danny.al-gaaf@bisect.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/src/common/WorkQueue.h b/src/common/WorkQueue.h index 9fb215b..b19a6a2 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:
Replace C-style pointer casting with correct static_cast<>(). Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de> --- src/common/WorkQueue.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)