Skip to content

Commit

Permalink
[HelperPr] Fix string comparison compiler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
CastagnaIT committed Sep 2, 2024
1 parent 789378c commit ace1e2b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/decrypters/HelperPr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ bool DRM::PRHeaderParser::Parse(const std::vector<uint8_t>& prHeader)
xml_node nodeAlgid = nodePROTECTINFO.child("ALGID");
if (nodeAlgid)
{
auto algid = nodeAlgid.child_value();
std::string_view algid = nodeAlgid.child_value();
if (algid == "AESCTR")
m_encryption = EncryptionType::AESCTR;
else if (algid == "AESCBC")
Expand All @@ -237,7 +237,7 @@ bool DRM::PRHeaderParser::Parse(const std::vector<uint8_t>& prHeader)
{
kidBase64 = nodeKID.attribute("VALUE").as_string();

auto algid = nodeKID.attribute("ALGID").as_string();
std::string_view algid = nodeKID.attribute("ALGID").as_string();
if (algid == "AESCTR")
m_encryption = EncryptionType::AESCTR;
else if (algid == "AESCBC")
Expand All @@ -256,7 +256,7 @@ bool DRM::PRHeaderParser::Parse(const std::vector<uint8_t>& prHeader)
{
kidBase64 = nodeKID.attribute("VALUE").as_string();

auto algid = nodeKID.attribute("ALGID").as_string();
std::string_view algid = nodeKID.attribute("ALGID").as_string();
if (algid == "AESCTR")
m_encryption = EncryptionType::AESCTR;
else if (algid == "AESCBC")
Expand Down

0 comments on commit ace1e2b

Please sign in to comment.