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

Unified Diff: xfa/fwl/basewidget/fwl_editimp.cpp

Issue 1973883005: ReplaceSelections() methods never called. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « xfa/fwl/basewidget/fwl_editimp.h ('k') | xfa/fwl/basewidget/ifwl_edit.h » ('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 9f80336efa9b3ef88f184dde3abd5189b47cdd80..083a0885f748c670167569fea12e098295f05e90 100644
--- a/xfa/fwl/basewidget/fwl_editimp.cpp
+++ b/xfa/fwl/basewidget/fwl_editimp.cpp
@@ -127,9 +127,6 @@ FWL_Error IFWL_Edit::DeleteSelections() {
FWL_Error IFWL_Edit::DeleteRange(int32_t nStart, int32_t nCount) {
return static_cast<CFWL_EditImp*>(GetImpl())->DeleteRange(nStart, nCount);
}
-FWL_Error IFWL_Edit::ReplaceSelections(const CFX_WideStringC& wsReplace) {
- return static_cast<CFWL_EditImp*>(GetImpl())->ReplaceSelections(wsReplace);
-}
FWL_Error IFWL_Edit::Replace(int32_t nStart,
int32_t nLen,
const CFX_WideStringC& wsReplace) {
@@ -664,19 +661,6 @@ FWL_Error CFWL_EditImp::DeleteRange(int32_t nStart, int32_t nCount) {
return FWL_Error::Succeeded;
}
-FWL_Error CFWL_EditImp::ReplaceSelections(const CFX_WideStringC& wsReplace) {
- if (!m_pEdtEngine)
- return FWL_Error::Indefinite;
-
- int32_t iCount = m_pEdtEngine->CountSelRanges();
- for (int i = 0; i < iCount; i++) {
- int32_t nStart;
- int32_t nCount = m_pEdtEngine->GetSelRange(i, nStart);
- m_pEdtEngine->Replace(nStart, nCount, wsReplace);
- }
- return FWL_Error::Succeeded;
-}
-
FWL_Error CFWL_EditImp::Replace(int32_t nStart,
int32_t nLen,
const CFX_WideStringC& wsReplace) {
« no previous file with comments | « xfa/fwl/basewidget/fwl_editimp.h ('k') | xfa/fwl/basewidget/ifwl_edit.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698