diff options
Diffstat (limited to 'core/fpdfapi/page')
-rw-r--r-- | core/fpdfapi/page/cpdf_streamcontentparser.cpp | 2 | ||||
-rw-r--r-- | core/fpdfapi/page/fpdf_page_func.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/core/fpdfapi/page/cpdf_streamcontentparser.cpp b/core/fpdfapi/page/cpdf_streamcontentparser.cpp index 6211b6a4dd..102ec7973a 100644 --- a/core/fpdfapi/page/cpdf_streamcontentparser.cpp +++ b/core/fpdfapi/page/cpdf_streamcontentparser.cpp @@ -163,7 +163,7 @@ struct AbbrReplacementOp { CFX_ByteStringC FindFullName(const AbbrPair* table, size_t count, const CFX_ByteStringC& abbr) { - auto it = std::find_if(table, table + count, [abbr](const AbbrPair& pair) { + auto* it = std::find_if(table, table + count, [abbr](const AbbrPair& pair) { return pair.abbr == abbr; }); return it != table + count ? CFX_ByteStringC(it->full_name) diff --git a/core/fpdfapi/page/fpdf_page_func.cpp b/core/fpdfapi/page/fpdf_page_func.cpp index 916641f05d..f81ec9e6bd 100644 --- a/core/fpdfapi/page/fpdf_page_func.cpp +++ b/core/fpdfapi/page/fpdf_page_func.cpp @@ -469,9 +469,9 @@ bool CPDF_PSEngine::DoOperator(PDF_PSOP op) { j %= n; if (j > 0) j -= n; - auto begin_it = std::begin(m_Stack) + m_StackCount - n; - auto middle_it = begin_it - j; - auto end_it = std::begin(m_Stack) + m_StackCount; + auto* begin_it = std::begin(m_Stack) + m_StackCount - n; + auto* middle_it = begin_it - j; + auto* end_it = std::begin(m_Stack) + m_StackCount; std::rotate(begin_it, middle_it, end_it); break; } |