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

Side by Side Diff: fpdfsdk/src/formfiller/FFL_IFormFiller.cpp

Issue 1101933003: Reduce usage of operator LPCWSTR from CFX_WideString(). (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Restore operator. Created 5 years, 7 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 | « fpdfsdk/src/formfiller/FFL_ComboBox.cpp ('k') | fpdfsdk/src/formfiller/FFL_ListBox.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 "../../include/formfiller/FFL_FormFiller.h" 7 #include "../../include/formfiller/FFL_FormFiller.h"
8 #include "../../include/formfiller/FFL_IFormFiller.h" 8 #include "../../include/formfiller/FFL_IFormFiller.h"
9 #include "../../include/formfiller/FFL_CheckBox.h" 9 #include "../../include/formfiller/FFL_CheckBox.h"
10 #include "../../include/formfiller/FFL_ComboBox.h" 10 #include "../../include/formfiller/FFL_ComboBox.h"
(...skipping 955 matching lines...) Expand 10 before | Expand all | Expand 10 after
966 966
967 FX_BOOL bFormated = FALSE; 967 FX_BOOL bFormated = FALSE;
968 CFX_WideString sValue = pInterForm->OnFormat(pWidget->GetFormFie ld(), GetCommitKey(), bFormated); 968 CFX_WideString sValue = pInterForm->OnFormat(pWidget->GetFormFie ld(), GetCommitKey(), bFormated);
969 969
970 // bExit = !IsValidAnnot(m_pApp, pDocument, pDocView, pPageView, pW idget); 970 // bExit = !IsValidAnnot(m_pApp, pDocument, pDocView, pPageView, pW idget);
971 971
972 if (bExit) return; 972 if (bExit) return;
973 973
974 if (bFormated) 974 if (bFormated)
975 { 975 {
976 » » » pInterForm->ResetFieldAppearance(pWidget->GetFormField() , sValue, TRUE); 976 » » » pInterForm->ResetFieldAppearance(pWidget->GetFormField() , sValue.c_str(), TRUE);
977 pInterForm->UpdateField(pWidget->GetFormField()); 977 pInterForm->UpdateField(pWidget->GetFormField());
978 } 978 }
979 979
980 m_bNotifying = FALSE; 980 m_bNotifying = FALSE;
981 } 981 }
982 } 982 }
983 983
984 // LRESULT CALLBACK CFFL_IFormFiller::FFL_WndProc( 984 // LRESULT CALLBACK CFFL_IFormFiller::FFL_WndProc(
985 // int co de, // hook code 985 // int co de, // hook code
986 // WPARAM wParam, // virtual-key code 986 // WPARAM wParam, // virtual-key code
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
1188 ASSERT(pPrivateData != NULL); 1188 ASSERT(pPrivateData != NULL);
1189 CFFL_PrivateData* pData = (CFFL_PrivateData*)pPrivateData; 1189 CFFL_PrivateData* pData = (CFFL_PrivateData*)pPrivateData;
1190 ASSERT(pData->pWidget != NULL); 1190 ASSERT(pData->pWidget != NULL);
1191 1191
1192 CFFL_FormFiller* pFormFiller = GetFormFiller(pData->pWidget, FALSE); 1192 CFFL_FormFiller* pFormFiller = GetFormFiller(pData->pWidget, FALSE);
1193 ASSERT(pFormFiller != NULL); 1193 ASSERT(pFormFiller != NULL);
1194 1194
1195 if (!bEditOrList) 1195 if (!bEditOrList)
1196 pFormFiller->OnKeyStroke(bExit); 1196 pFormFiller->OnKeyStroke(bExit);
1197 } 1197 }
OLDNEW
« no previous file with comments | « fpdfsdk/src/formfiller/FFL_ComboBox.cpp ('k') | fpdfsdk/src/formfiller/FFL_ListBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698