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

Side by Side Diff: fpdfsdk/src/pdfwindow/PWL_IconList.cpp

Issue 1108903002: Merge to XFA: Reduce usage of operator LPCWSTR from CFX_WideString(). (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: 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/pdfwindow/PWL_Edit.cpp ('k') | fpdfsdk/src/pdfwindow/PWL_Note.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/pdfwindow/PDFWindow.h" 7 #include "../../include/pdfwindow/PDFWindow.h"
8 #include "../../include/pdfwindow/PWL_Wnd.h" 8 #include "../../include/pdfwindow/PWL_Wnd.h"
9 #include "../../include/pdfwindow/PWL_ListCtrl.h" 9 #include "../../include/pdfwindow/PWL_ListCtrl.h"
10 #include "../../include/pdfwindow/PWL_IconList.h" 10 #include "../../include/pdfwindow/PWL_IconList.h"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 m_pData = pData; 100 m_pData = pData;
101 } 101 }
102 102
103 void CPWL_IconList_Item::SetIcon(FX_INT32 nIconIndex) 103 void CPWL_IconList_Item::SetIcon(FX_INT32 nIconIndex)
104 { 104 {
105 m_nIconIndex = nIconIndex; 105 m_nIconIndex = nIconIndex;
106 } 106 }
107 107
108 void CPWL_IconList_Item::SetText(const CFX_WideString& str) 108 void CPWL_IconList_Item::SetText(const CFX_WideString& str)
109 { 109 {
110 » m_pText->SetText(str); 110 » m_pText->SetText(str.c_str());
111 } 111 }
112 112
113 CFX_WideString CPWL_IconList_Item::GetText() const 113 CFX_WideString CPWL_IconList_Item::GetText() const
114 { 114 {
115 return m_pText->GetText(); 115 return m_pText->GetText();
116 } 116 }
117 117
118 void CPWL_IconList_Item::RePosChildWnd() 118 void CPWL_IconList_Item::RePosChildWnd()
119 { 119 {
120 CPDF_Rect rcClient = GetClientRect(); 120 CPDF_Rect rcClient = GetClientRect();
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 if (CPWL_ScrollBar* pScrollBar = this->GetVScrollBar()) 583 if (CPWL_ScrollBar* pScrollBar = this->GetVScrollBar())
584 pScrollBar->OnNotify(this, PNM_SETSCROLLPOS, SBT _VSCROLL, (FX_INTPTR)&ptNew.y); 584 pScrollBar->OnNotify(this, PNM_SETSCROLLPOS, SBT _VSCROLL, (FX_INTPTR)&ptNew.y);
585 585
586 return TRUE; 586 return TRUE;
587 } 587 }
588 } 588 }
589 589
590 return FALSE; 590 return FALSE;
591 } 591 }
592 592
OLDNEW
« no previous file with comments | « fpdfsdk/src/pdfwindow/PWL_Edit.cpp ('k') | fpdfsdk/src/pdfwindow/PWL_Note.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698