summaryrefslogtreecommitdiff
path: root/fpdfsdk
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-06-20 14:20:23 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-06-20 14:20:23 +0000
commite84e61852a4f3d8d7551d0eab3619916085fb557 (patch)
treec94e8da5b1a1cc1af831cf23288786153e509eb2 /fpdfsdk
parentb6e0117285a918f4f2f3a350b8a648d2247d3d8e (diff)
downloadpdfium-e84e61852a4f3d8d7551d0eab3619916085fb557.tar.xz
c_str() calls not needed when writing to ostream
c_str() is a bit of a code smell, esp. since Byte/Wide strings know how to do this all by themselves. Change-Id: I9c86cee42c12a3f72ddb1d410a91cf25647d0ce6 Reviewed-on: https://pdfium-review.googlesource.com/35530 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk')
-rw-r--r--fpdfsdk/cpdfsdk_interform.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/cpdfsdk_interform.cpp b/fpdfsdk/cpdfsdk_interform.cpp
index 379a8b999d..751a889b68 100644
--- a/fpdfsdk/cpdfsdk_interform.cpp
+++ b/fpdfsdk/cpdfsdk_interform.cpp
@@ -515,7 +515,7 @@ bool CPDFSDK_InterForm::FDFToURLEncodedData(uint8_t*& pBuf, size_t& nBufSize) {
ByteString csBValue = pField->GetStringFor("V");
WideString csWValue = PDF_DecodeText(csBValue);
ByteString csValue_b = ByteString::FromUnicode(csWValue);
- fdfEncodedData << name_b.c_str() << "=" << csValue_b.c_str();
+ fdfEncodedData << name_b << "=" << csValue_b;
if (i != pFields->GetCount() - 1)
fdfEncodedData << "&";
}