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

Side by Side Diff: xfa/fwl/lightwidget/cfwl_datetimepicker.cpp

Issue 1892813004: Avoid narrowing of strings in FWL SetEditText methods. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « xfa/fwl/lightwidget/cfwl_datetimepicker.h ('k') | xfa/fxfa/app/xfa_ffchoicelist.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #include "xfa/fwl/lightwidget/cfwl_datetimepicker.h" 7 #include "xfa/fwl/lightwidget/cfwl_datetimepicker.h"
8 8
9 #include <memory> 9 #include <memory>
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 int32_t CFWL_DateTimePicker::GetSelRange(int32_t nIndex, int32_t& nStart) { 52 int32_t CFWL_DateTimePicker::GetSelRange(int32_t nIndex, int32_t& nStart) {
53 return static_cast<IFWL_DateTimePicker*>(m_pIface) 53 return static_cast<IFWL_DateTimePicker*>(m_pIface)
54 ->GetSelRange(nIndex, nStart); 54 ->GetSelRange(nIndex, nStart);
55 } 55 }
56 56
57 FWL_ERR CFWL_DateTimePicker::GetEditText(CFX_WideString& wsText) { 57 FWL_ERR CFWL_DateTimePicker::GetEditText(CFX_WideString& wsText) {
58 return static_cast<IFWL_DateTimePicker*>(m_pIface)->GetEditText(wsText); 58 return static_cast<IFWL_DateTimePicker*>(m_pIface)->GetEditText(wsText);
59 } 59 }
60 60
61 FWL_ERR CFWL_DateTimePicker::SetEditText(const CFX_WideStringC& wsText) { 61 FWL_ERR CFWL_DateTimePicker::SetEditText(const CFX_WideString& wsText) {
62 return static_cast<IFWL_DateTimePicker*>(m_pIface)->SetEditText(wsText); 62 return static_cast<IFWL_DateTimePicker*>(m_pIface)->SetEditText(wsText);
63 } 63 }
64 64
65 FWL_ERR CFWL_DateTimePicker::GetCurSel(int32_t& iYear, 65 FWL_ERR CFWL_DateTimePicker::GetCurSel(int32_t& iYear,
66 int32_t& iMonth, 66 int32_t& iMonth,
67 int32_t& iDay) { 67 int32_t& iDay) {
68 return static_cast<IFWL_DateTimePicker*>(m_pIface) 68 return static_cast<IFWL_DateTimePicker*>(m_pIface)
69 ->GetCurSel(iYear, iMonth, iDay); 69 ->GetCurSel(iYear, iMonth, iDay);
70 } 70 }
71 71
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 162
163 FWL_ERR CFWL_DateTimePicker::SetEditLimit(int32_t nLimit) { 163 FWL_ERR CFWL_DateTimePicker::SetEditLimit(int32_t nLimit) {
164 return static_cast<IFWL_DateTimePicker*>(m_pIface)->SetEditLimit(nLimit); 164 return static_cast<IFWL_DateTimePicker*>(m_pIface)->SetEditLimit(nLimit);
165 } 165 }
166 166
167 FWL_ERR CFWL_DateTimePicker::ModifyEditStylesEx(uint32_t dwStylesExAdded, 167 FWL_ERR CFWL_DateTimePicker::ModifyEditStylesEx(uint32_t dwStylesExAdded,
168 uint32_t dwStylesExRemoved) { 168 uint32_t dwStylesExRemoved) {
169 return static_cast<IFWL_DateTimePicker*>(m_pIface) 169 return static_cast<IFWL_DateTimePicker*>(m_pIface)
170 ->ModifyEditStylesEx(dwStylesExAdded, dwStylesExRemoved); 170 ->ModifyEditStylesEx(dwStylesExAdded, dwStylesExRemoved);
171 } 171 }
OLDNEW
« no previous file with comments | « xfa/fwl/lightwidget/cfwl_datetimepicker.h ('k') | xfa/fxfa/app/xfa_ffchoicelist.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698