summaryrefslogtreecommitdiff
path: root/api/api_test.go
diff options
context:
space:
mode:
author Anton Utkin <AViUtkin@sberbank.ru> 2023-04-06 15:41:13 +0300
committer Anton Utkin <avutkin@sberdevices.ru> 2023-04-07 14:10:03 +0300
commit06eebb516205622a5d399b89fc98e3974aaeda2e (patch)
treeb342311a486e5055446efc38a5813e5219e5f375 /api/api_test.go
parent7348247776fb318a0c132d340c12384497ec0088 (diff)
[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>
Diffstat (limited to 'api/api_test.go')
0 files changed, 0 insertions, 0 deletions