]> git.tdb.fi Git - libs/core.git/blobdiff - source/core/thread.h
Convert a C-style cast to C++-style
[libs/core.git] / source / core / thread.h
index 60a2e83e7154096524c2583e7eccfe57f8cc5c30..ef095c6a0ce0ab8bf1a591e8714f2d469c4603f0 100644 (file)
@@ -43,7 +43,7 @@ private:
 #else
        void *
 #endif
-       main_(void *t) { ((Thread *)t)->main(); return 0; }
+       main_(void *t) { (reinterpret_cast<Thread *>(t))->main(); return 0; }
 };
 
 } // namespace Msp