Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Issue 2044293004: Convert CFXJSE_Value::ToString to return. (Closed)

Created:
4 years, 6 months ago by dsinclair
Modified:
4 years, 6 months ago
Reviewers:
Tom Sepez, Lei Zhang
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@fm2jscontext_cleanup_9
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Convert CFXJSE_Value::ToString to return. ThiS Cl updates CFXJSE_Value::ToString() to return a CFX_ByteString instead of taking an out parameter. It also adds a ToStringC() and ToWideString() to hide the common conversions that are done on the string value. Committed: https://pdfium.googlesource.com/pdfium/+/2f5582f46dce2abfe9d75ea5f885a2ce0a4c10d2

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -218 lines) Patch
M xfa/fxfa/app/xfa_ffwidgetacc.cpp View 1 chunk +3 lines, -6 lines 0 comments Download
M xfa/fxfa/fm2js/xfa_fm2jscontext.cpp View 1 26 chunks +42 lines, -105 lines 0 comments Download
M xfa/fxfa/parser/xfa_object_imp.cpp View 19 chunks +55 lines, -85 lines 0 comments Download
M xfa/fxfa/parser/xfa_script_eventpseudomodel.cpp View 1 chunk +1 line, -3 lines 0 comments Download
M xfa/fxfa/parser/xfa_script_hostpseudomodel.cpp View 6 chunks +4 lines, -17 lines 0 comments Download
M xfa/fxjse/value.h View 1 1 chunk +5 lines, -2 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 10 (3 generated)
dsinclair
PTAL. https://codereview.chromium.org/2044293004/diff/1/xfa/fxfa/parser/xfa_object_imp.cpp File xfa/fxfa/parser/xfa_object_imp.cpp (left): https://codereview.chromium.org/2044293004/diff/1/xfa/fxfa/parser/xfa_object_imp.cpp#oldcode1438 xfa/fxfa/parser/xfa_object_imp.cpp:1438: CFX_WideString wsUseVal = wsValue, wsID, wsSOM; This syntax ...
4 years, 6 months ago (2016-06-09 16:30:38 UTC) #2
Tom Sepez
https://codereview.chromium.org/2044293004/diff/1/xfa/fxjse/value.h File xfa/fxjse/value.h (right): https://codereview.chromium.org/2044293004/diff/1/xfa/fxjse/value.h#newcode184 xfa/fxjse/value.h:184: V8_INLINE CFX_ByteStringC ToStringC() const { return ToString().AsStringC(); } Nope. ...
4 years, 6 months ago (2016-06-09 16:43:56 UTC) #3
Tom Sepez
https://codereview.chromium.org/2044293004/diff/1/xfa/fxjse/value.h File xfa/fxjse/value.h (right): https://codereview.chromium.org/2044293004/diff/1/xfa/fxjse/value.h#newcode186 xfa/fxjse/value.h:186: return CFX_WideString::FromUTF8(ToStringC()); Note that ToWideString() will be fine (once ...
4 years, 6 months ago (2016-06-09 16:47:56 UTC) #4
dsinclair
https://codereview.chromium.org/2044293004/diff/1/xfa/fxjse/value.h File xfa/fxjse/value.h (right): https://codereview.chromium.org/2044293004/diff/1/xfa/fxjse/value.h#newcode184 xfa/fxjse/value.h:184: V8_INLINE CFX_ByteStringC ToStringC() const { return ToString().AsStringC(); } On ...
4 years, 6 months ago (2016-06-09 17:26:54 UTC) #5
Tom Sepez
lgtm
4 years, 6 months ago (2016-06-09 18:02:16 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2044293004/20001
4 years, 6 months ago (2016-06-09 18:48:10 UTC) #8
commit-bot: I haz the power
4 years, 6 months ago (2016-06-09 18:48:26 UTC) #10
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://pdfium.googlesource.com/pdfium/+/2f5582f46dce2abfe9d75ea5f885a2ce0a4c...

Powered by Google App Engine
This is Rietveld 408576698