Skip to content
Commit 06eebb51 authored by Anton Utkin's avatar Anton Utkin Committed by Anton Utkin
Browse files

[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: default avatarAnton Utkin <avutkin@sberdevices.ru>
parent 73482477
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment