diff options
author | tsepez <tsepez@chromium.org> | 2016-04-14 09:49:44 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-14 09:49:44 -0700 |
commit | 774bdde253b8394aa2ac791e273508ff006d813a (patch) | |
tree | f00993d262bfda76d129c14dc8a11053e019542f /core/fpdftext/fpdf_text_int.cpp | |
parent | 725a49f7a64a3537c081cd23cf7d5d6578efdfa1 (diff) | |
download | pdfium-774bdde253b8394aa2ac791e273508ff006d813a.tar.xz |
Replace calls to deprecated CFX_{Wide,Byte}String::Empty()
Use the more standard name "clear()" instead.
Review URL: https://codereview.chromium.org/1888103002
Diffstat (limited to 'core/fpdftext/fpdf_text_int.cpp')
-rw-r--r-- | core/fpdftext/fpdf_text_int.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/fpdftext/fpdf_text_int.cpp b/core/fpdftext/fpdf_text_int.cpp index a1e3fda7b1..8de65cb07a 100644 --- a/core/fpdftext/fpdf_text_int.cpp +++ b/core/fpdftext/fpdf_text_int.cpp @@ -2185,7 +2185,7 @@ void CPDF_TextPageFind::ExtractFindWhat(const CFX_WideString& findwhat) { } m_csFindWhatArray.push_back(curStr); if (pos == csWord.GetLength() - 1) { - csWord.Empty(); + csWord.clear(); break; } csWord = csWord.Right(csWord.GetLength() - pos - 1); @@ -2258,7 +2258,7 @@ FX_BOOL CPDF_TextPageFind::ExtractSubString(CFX_WideString& rString, while (iSubString--) { lpszFullString = FXSYS_wcschr(lpszFullString, chSep); if (!lpszFullString) { - rString.Empty(); + rString.clear(); return FALSE; } lpszFullString++; @@ -2278,7 +2278,7 @@ FX_BOOL CPDF_TextPageFind::ExtractSubString(CFX_WideString& rString, CFX_WideString CPDF_TextPageFind::MakeReverse(const CFX_WideString& str) { CFX_WideString str2; - str2.Empty(); + str2.clear(); int nlen = str.GetLength(); for (int i = nlen - 1; i >= 0; i--) { str2 += str.GetAt(i); |