Remove extra copy operations identified by Coverity

Change-Id: I5e900082d3b17300f3a4ef95561d04c0228aba4f
This commit is contained in:
Ian Benz
2024-01-24 20:32:34 +00:00
committed by Robert Shih
parent a457c2a14d
commit 44e21cb9c2
10 changed files with 32 additions and 29 deletions

View File

@@ -619,7 +619,7 @@ TEST_P(CdmLicenseEntitledKeyTest, LoadsEntitledKeys) {
CreateCdmLicense();
EXPECT_TRUE(cdm_license_->Init(true, kDefaultServiceCertificate,
crypto_session_, policy_engine_));
cdm_license_->set_entitlement_keys(entitlement_license);
cdm_license_->set_entitlement_keys(std::move(entitlement_license));
// Call the function under test and check its return value
CdmResponseType ret = cdm_license_->HandleNewEntitledKeys(entitled_keys);