summaryrefslogtreecommitdiff
path: root/xfa/fxfa/app
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-05-18 11:39:15 -0700
committerCommit bot <commit-bot@chromium.org>2016-05-18 11:39:15 -0700
commit501e8cdc9143d4b1bebd22e7bfdcae4368e459ee (patch)
treebfa380d7dfe06f2fbcf7b59b26a7f61bbb0de07f /xfa/fxfa/app
parent653951828cf934afb48b57989089a99b38620d02 (diff)
downloadpdfium-501e8cdc9143d4b1bebd22e7bfdcae4368e459ee.tar.xz
Remove Release() from CXFA_ChecksumContext
Review-Url: https://codereview.chromium.org/1991913002
Diffstat (limited to 'xfa/fxfa/app')
-rw-r--r--xfa/fxfa/app/xfa_checksum.cpp6
-rw-r--r--xfa/fxfa/app/xfa_ffdoc.cpp2
2 files changed, 5 insertions, 3 deletions
diff --git a/xfa/fxfa/app/xfa_checksum.cpp b/xfa/fxfa/app/xfa_checksum.cpp
index 195033bfab..1641816550 100644
--- a/xfa/fxfa/app/xfa_checksum.cpp
+++ b/xfa/fxfa/app/xfa_checksum.cpp
@@ -177,9 +177,11 @@ void CXFA_ChecksumContext::FinishChecksum() {
m_pByteContext = NULL;
}
}
-void CXFA_ChecksumContext::GetChecksum(CFX_ByteString& bsChecksum) {
- bsChecksum = m_bsChecksum;
+
+CFX_ByteString CXFA_ChecksumContext::GetChecksum() const {
+ return m_bsChecksum;
}
+
void CXFA_ChecksumContext::Update(const CFX_ByteStringC& bsText) {
if (m_pByteContext) {
CRYPT_SHA1Update(m_pByteContext, bsText.raw_str(), bsText.GetLength());
diff --git a/xfa/fxfa/app/xfa_ffdoc.cpp b/xfa/fxfa/app/xfa_ffdoc.cpp
index 8297dce9ec..8621430d3f 100644
--- a/xfa/fxfa/app/xfa_ffdoc.cpp
+++ b/xfa/fxfa/app/xfa_ffdoc.cpp
@@ -377,7 +377,7 @@ FX_BOOL CXFA_FFDoc::SavePackage(const CFX_WideStringC& wsPackage,
CFX_ByteString bsChecksum;
if (pCSContext)
- pCSContext->GetChecksum(bsChecksum);
+ bsChecksum = pCSContext->GetChecksum();
return pExport->Export(pFile, pNode, 0,
bsChecksum.GetLength() ? bsChecksum.c_str() : nullptr);