Index: xfa/fxfa/app/xfa_ffdoc.cpp |
diff --git a/xfa/fxfa/app/xfa_ffdoc.cpp b/xfa/fxfa/app/xfa_ffdoc.cpp |
index 04fe075d2c4ac34276a3aa0439bcdc87151e4c39..c83895c25e99de3fd737f1ba4667f55c3d4be7d2 100644 |
--- a/xfa/fxfa/app/xfa_ffdoc.cpp |
+++ b/xfa/fxfa/app/xfa_ffdoc.cpp |
@@ -412,9 +412,8 @@ FX_BOOL CXFA_FFDoc::SavePackage(const CFX_WideStringC& wsPackage, |
if (pCSContext) { |
pCSContext->GetChecksum(bsChecksum); |
} |
- bFlags = pExport->Export(pFile, pNode, 0, bsChecksum.GetLength() |
- ? (const FX_CHAR*)bsChecksum |
- : NULL); |
+ bFlags = pExport->Export( |
+ pFile, pNode, 0, bsChecksum.GetLength() ? bsChecksum.c_str() : NULL); |
} else { |
bFlags = pExport->Export(pFile); |
} |