[1.0.28] Fix more cppcheck defects 59/297259/5 accepted/tizen/8.0/unified/20231005.092747 accepted/tizen/unified/20230821.162315 tizen_8.0_m2_release
authorSeungbae Shin <seungbae.shin@samsung.com>
Wed, 16 Aug 2023 04:24:35 +0000 (13:24 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Thu, 17 Aug 2023 12:07:22 +0000 (21:07 +0900)
commitee89bd6215d7e4bb68732233f8c7a3ebde9086ee
tree1dbb2437db67057816fc6476c7f40eb351396941
parentfefb5b39c94aee192fd7b22661e8901a0f5f93b7
[1.0.28] Fix more cppcheck defects

- style: C-style pointer casting [cstyleCast]
- style: Parameter 'item' can be declared as reference to const [constParameterReference]
- performance: Function parameter 'mime' should be passed by const reference. [passedByValue]
- performance: Variable '_dirPath' is assigned in constructor body.
               Consider performing initialization in initialization list. [useInitializationList]
- style: The scope of the variable 'ipAddr' can be reduced. [variableScope]
- style: The scope of the variable 'portNum' can be reduced. [variableScope]
- style: inconclusive: Technically the member function 'EsStreamReader::getMediaFormat' can be const. [functionConst]

In addition, a little minor refactoring of MediaTransporterSenderRtsp::startRtspServer()

Change-Id: Ie4d2bfa4275b57947a768c60381bd2dc74985a5d
include/MediaTransporterSenderRtsp.h
packaging/capi-media-transporter.spec
src/MediaTransporterConnectionStats.cpp
src/MediaTransporterGst.cpp
src/MediaTransporterParseIni.cpp
src/MediaTransporterReceiver.cpp
src/MediaTransporterSenderRtsp.cpp
src/MediaTransporterSenderSrt.cpp
unittest/ut_es_reader.hpp