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

Unified Diff: xfa/fwl/basewidget/fwl_editimp.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « xfa/fgas/localization/fgas_locale.cpp ('k') | xfa/fwl/core/fwl_targetimp.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/fwl/basewidget/fwl_editimp.cpp
diff --git a/xfa/fwl/basewidget/fwl_editimp.cpp b/xfa/fwl/basewidget/fwl_editimp.cpp
index 95cf273ec260183eaa4d946eef36093baa83648c..1bc876f691f93b35d5deb4beeede94302a0c6e6c 100644
--- a/xfa/fwl/basewidget/fwl_editimp.cpp
+++ b/xfa/fwl/basewidget/fwl_editimp.cpp
@@ -459,7 +459,7 @@ void CFWL_EditImp::DrawSpellCheck(CFX_Graphics* pGraphics,
AddSpellCheckObj(pathSpell, nStart, sLatinWord.GetLength(), fOffSetX,
fOffSetY);
}
- sLatinWord.Empty();
+ sLatinWord.clear();
}
}
checkWordEvent.bsWord = sLatinWord;
@@ -661,14 +661,14 @@ FX_BOOL CFWL_EditImp::Copy(CFX_WideString& wsCopy) {
if (nCount == 0) {
return FALSE;
}
- wsCopy.Empty();
+ wsCopy.clear();
CFX_WideString wsTemp;
int32_t nStart, nLength;
for (int32_t i = 0; i < nCount; i++) {
nLength = m_pEdtEngine->GetSelRange(i, nStart);
m_pEdtEngine->GetText(wsTemp, nStart, nLength);
wsCopy += wsTemp;
- wsTemp.Empty();
+ wsTemp.clear();
}
return TRUE;
}
@@ -679,14 +679,14 @@ FX_BOOL CFWL_EditImp::Cut(CFX_WideString& wsCut) {
if (nCount == 0) {
return FALSE;
}
- wsCut.Empty();
+ wsCut.clear();
CFX_WideString wsTemp;
int32_t nStart, nLength;
for (int32_t i = 0; i < nCount; i++) {
nLength = m_pEdtEngine->GetSelRange(i, nStart);
m_pEdtEngine->GetText(wsTemp, nStart, nLength);
wsCut += wsTemp;
- wsTemp.Empty();
+ wsTemp.clear();
}
m_pEdtEngine->Delete(0);
return TRUE;
« no previous file with comments | « xfa/fgas/localization/fgas_locale.cpp ('k') | xfa/fwl/core/fwl_targetimp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698