From b68157e475bee8d897bbf52d28982a7f54591378 Mon Sep 17 00:00:00 2001 From: Chris Tallon Date: Tue, 14 Jun 2022 17:09:41 +0000 Subject: [PATCH] 6 CWFs --- src/playervideolive.cc | 2 +- src/serialize.h | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/playervideolive.cc b/src/playervideolive.cc index 9034576..47d8915 100644 --- a/src/playervideolive.cc +++ b/src/playervideolive.cc @@ -234,7 +234,7 @@ void PlayerVideoLive::stop() playerThreadMutex.unlock(); playerThread.join(); - logger->debug(TAG, "stop succesfull"); + logger->debug(TAG, "stop succesful"); } // ----------------------------------- Callback diff --git a/src/serialize.h b/src/serialize.h index ffba6b9..f03022f 100644 --- a/src/serialize.h +++ b/src/serialize.h @@ -160,27 +160,27 @@ class SerializableList : public Serializable{ */ int addParam(const Serializable *p,USHORT vs=1){ encodeOnly=true; - return addParam((Serializable *)p,vs); + return addParam(const_cast(p),vs); } int addParam(const USHORT *p,USHORT vs=1){ encodeOnly=true; - return addParam((USHORT *)p,vs); + return addParam(const_cast(p),vs); } int addParam(const ULONG *p,USHORT vs=1){ encodeOnly=true; - return addParam((ULONG *)p,vs); + return addParam(const_cast(p),vs); } int addParam(const int *p,USHORT vs=1){ encodeOnly=true; - return addParam((ULONG *)p,vs); + return addParam(reinterpret_cast(const_cast(p)), vs); } int addParam(const ULLONG *p,USHORT vs=1){ encodeOnly=true; - return addParam((ULLONG *)p,vs); + return addParam(const_cast(p),vs); } int addParam(const char **p,USHORT vs=1){ encodeOnly=true; - return addParam((char **)p,vs); + return addParam(const_cast(p),vs); } -- 2.39.5