[RFC media]: refactoring several functions to C++ style
* goto operator is removed. In C++ there is no need
for goto usage, RAII idiom is the replacement for goto.
* C++ has smart pointers for automatic memory management.
There is no need for using calloc().
* The remaining code in this file can also be rewritten in C++.
Test: API AudioManager.getReportedSurroundFormats()
and AudioManager.getSurroundFormats() were called
and results were checked
Change-Id: Ia075a429f3ba9e45cdc865ecaee443726ae9ea43
Signed-off-by: Anton Utkin <avutkin@sberdevices.ru>
Loading
Please register or sign in to comment