diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-06-21 15:21:44 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-06-21 15:21:44 +0000 |
commit | a964f2a5ab09dc01d09fad78f940ee8e0e5c0c04 (patch) | |
tree | 8334a6a67d9fc8c61b215e0889920f7f1c4cfe04 /fxjs/cjs_event_context.cpp | |
parent | 9c292fef316739f43730f11b9a2b6d3e4b725b54 (diff) | |
download | pdfium-a964f2a5ab09dc01d09fad78f940ee8e0e5c0c04.tar.xz |
Remove WideString::c_str() calls where possible.
Many of these cause a string duplication as we go from
Widestring => c_str => Widestring
Change-Id: I0dfa952e66f89138e719ff9200db3d9397839e28
Reviewed-on: https://pdfium-review.googlesource.com/35790
Reviewed-by: dsinclair <dsinclair@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fxjs/cjs_event_context.cpp')
-rw-r--r-- | fxjs/cjs_event_context.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fxjs/cjs_event_context.cpp b/fxjs/cjs_event_context.cpp index 50149c4172..70f06771d1 100644 --- a/fxjs/cjs_event_context.cpp +++ b/fxjs/cjs_event_context.cpp @@ -50,7 +50,7 @@ Optional<IJS_Runtime::JS_Error> CJS_EventContext::RunScript( Optional<IJS_Runtime::JS_Error> err; if (script.GetLength() > 0) - err = m_pRuntime->ExecuteScript(script.c_str()); + err = m_pRuntime->ExecuteScript(script); m_pRuntime->RemoveEventFromSet(event); m_pEventHandler->Destroy(); |