a71-common: audio-impl: Migrate String8|16.setTo to assignment operator

Bug: 295394788
Test: make checkbuild
Change-Id: I4df5d3fe54912abbf42f92f809ab5602c0d8caef
This commit is contained in:
Tomasz Wasilczyk
2024-07-31 14:00:59 +02:00
committed by Haky86
parent 68c80f3337
commit c621d68bd8

View File

@@ -97,7 +97,7 @@ std::unique_ptr<AudioParameter> ParametersUtil::getParams(const AudioParameter&
String8 paramsAndValues;
char* halValues = halGetParameters(keys.keysToString().c_str());
if (halValues != NULL) {
paramsAndValues.setTo(halValues);
paramsAndValues = halValues;
free(halValues);
} else {
paramsAndValues.clear();