Skip to content

Commit

Permalink
Merge pull request #1671 from CastagnaIT/fix_str_comparison
Browse files Browse the repository at this point in the history
[HelperPr] Fix string comparison compiler warning
  • Loading branch information
CastagnaIT authored Sep 2, 2024
2 parents 789378c + ace1e2b commit 2147f08
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 2147f08

Please sign in to comment.