Skip to content

Commit

Permalink
added values to Find and Replace Column
Browse files Browse the repository at this point in the history
  • Loading branch information
daddel80 committed Jan 20, 2024
1 parent 674023c commit dfa97f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/MultiReplacePanel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -847,10 +847,10 @@ void MultiReplace::resetCountColumns() {
InvalidateRect(_replaceListView, NULL, TRUE);
}

void MultiReplace::updateCountColumns(int itemIndex, int findCount, int replaceCount)
void MultiReplace::updateCountColumns(size_t itemIndex, int findCount, int replaceCount)
{
// Check if the itemIndex is valid
if (itemIndex < 0 || itemIndex >= replaceListData.size()) {
if (itemIndex >= replaceListData.size()) {
return;
}

Expand Down Expand Up @@ -1543,7 +1543,7 @@ void MultiReplace::handleReplaceAllButton() {
return;
}
::SendMessage(_hScintilla, SCI_BEGINUNDOACTION, 0, 0);
for (int i = 0; i < replaceListData.size(); ++i)
for (size_t i = 0; i < replaceListData.size(); ++i)
{
if (replaceListData[i].isSelected)
{
Expand Down Expand Up @@ -2694,7 +2694,7 @@ void MultiReplace::handleMarkMatchesButton() {
return;
}

for (int i = 0; i < replaceListData.size(); ++i) {
for (size_t i = 0; i < replaceListData.size(); ++i) {
if (replaceListData[i].isSelected) {
std::string findTextUtf8 = convertAndExtend(replaceListData[i].findText, replaceListData[i].extended);
int searchFlags = (replaceListData[i].wholeWord * SCFIND_WHOLEWORD)
Expand Down
2 changes: 1 addition & 1 deletion src/MultiReplacePanel.h
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ class MultiReplace : public StaticDialog
void selectRows(const std::vector<ReplaceItemData>& rowsToSelect);
void handleCopyToListButton();
void resetCountColumns();
void updateCountColumns(int itemIndex, int findCount, int replaceCount = -1);
void updateCountColumns(size_t itemIndex, int findCount, int replaceCount = -1);

//Replace
void handleReplaceAllButton();
Expand Down

0 comments on commit dfa97f4

Please sign in to comment.