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

Side by Side Diff: xfa/fxfa/app/xfa_fwltheme.cpp

Issue 1888103002: Replace calls to deprecated CFX_{Wide,Byte}String::Empty() (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/fxfa/app/xfa_checksum.cpp ('k') | xfa/fxfa/app/xfa_textlayout.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/fxfa/app/xfa_fwltheme.h" 7 #include "xfa/fxfa/app/xfa_fwltheme.h"
8 8
9 #include "xfa/fde/tto/fde_textout.h" 9 #include "xfa/fde/tto/fde_textout.h"
10 #include "xfa/fgas/crt/fgas_codepage.h" 10 #include "xfa/fgas/crt/fgas_codepage.h"
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 return &m_SizeAboveBelow; 261 return &m_SizeAboveBelow;
262 } break; 262 } break;
263 default: 263 default:
264 break; 264 break;
265 } 265 }
266 if (pThemePart->m_pWidget->GetClassID() == FWL_CLASSHASH_MonthCalendar && 266 if (pThemePart->m_pWidget->GetClassID() == FWL_CLASSHASH_MonthCalendar &&
267 dwCapacity >= FWL_MCCAPACITY_Sun && dwCapacity <= FWL_MCCAPACITY_Today) { 267 dwCapacity >= FWL_MCCAPACITY_Sun && dwCapacity <= FWL_MCCAPACITY_Today) {
268 if (CXFA_FFWidget* pWidget = 268 if (CXFA_FFWidget* pWidget =
269 XFA_ThemeGetOuterWidget(pThemePart->m_pWidget)) { 269 XFA_ThemeGetOuterWidget(pThemePart->m_pWidget)) {
270 IXFA_AppProvider* pAppProvider = pWidget->GetAppProvider(); 270 IXFA_AppProvider* pAppProvider = pWidget->GetAppProvider();
271 m_wsResource.Empty(); 271 m_wsResource.clear();
272 pAppProvider->LoadString( 272 pAppProvider->LoadString(
273 XFA_IDS_StringWeekDay_Sun + dwCapacity - FWL_WGTCAPACITY_MAX - 5, 273 XFA_IDS_StringWeekDay_Sun + dwCapacity - FWL_WGTCAPACITY_MAX - 5,
274 m_wsResource); 274 m_wsResource);
275 if (!m_wsResource.IsEmpty()) { 275 if (!m_wsResource.IsEmpty()) {
276 return &m_wsResource; 276 return &m_wsResource;
277 } 277 }
278 } 278 }
279 } 279 }
280 return GetTheme(pThemePart->m_pWidget)->GetCapacity(pThemePart, dwCapacity); 280 return GetTheme(pThemePart->m_pWidget)->GetCapacity(pThemePart, dwCapacity);
281 } 281 }
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 } 423 }
424 } 424 }
425 CFX_Color crLine(cr); 425 CFX_Color crLine(cr);
426 pParams->m_pGraphics->SetStrokeColor(&crLine); 426 pParams->m_pGraphics->SetStrokeColor(&crLine);
427 pParams->m_pGraphics->SetLineWidth(fWidth); 427 pParams->m_pGraphics->SetLineWidth(fWidth);
428 pParams->m_pGraphics->StrokePath(pParams->m_pPath, &pParams->m_matrix); 428 pParams->m_pGraphics->StrokePath(pParams->m_pPath, &pParams->m_matrix);
429 return TRUE; 429 return TRUE;
430 } 430 }
431 return CFWL_EditTP::DrawBackground(pParams); 431 return CFWL_EditTP::DrawBackground(pParams);
432 } 432 }
OLDNEW
« no previous file with comments | « xfa/fxfa/app/xfa_checksum.cpp ('k') | xfa/fxfa/app/xfa_textlayout.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698