Skip to content

Commit

Permalink
Finder: Fix a typo for the _nFoundFiles member.
Browse files Browse the repository at this point in the history
Signed-off-by: Jocelyn Legault <jocelynlegault@gmail.com>
Signed-off-by: Thell Fowler <git@tbfowler.name>
  • Loading branch information
joce authored and Thell Fowler committed Oct 6, 2009
1 parent 05dfeeb commit 0aaee08
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ class Finder : public DockingDlgInterface {
_ppEditView(NULL),
_pMainFoundInfos(&_foundInfos1),
_pMainMarkings(&_markings1),
nFoundFiles(0),
_nFoundFiles(0),
_lastFileHeaderPos(0),
_lastSearchHeaderPos(0)
{
Expand Down Expand Up @@ -246,7 +246,7 @@ protected :
SearchResultMarkings _MarkingsStruct;

ScintillaEditView _scintView;
unsigned int nFoundFiles;
unsigned int _nFoundFiles;

int _lastFileHeaderPos;
int _lastSearchHeaderPos;
Expand Down Expand Up @@ -2119,13 +2119,13 @@ void Finder::addFileHitCount(int count)
setFinderReadOnly(false);
_scintView.insertGenericTextFrom(_lastFileHeaderPos, text);
setFinderReadOnly(true);
nFoundFiles++;
_nFoundFiles++;
}

void Finder::addSearchHitCount(int count)
{
TCHAR text[50];
wsprintf(text, TEXT(" (%i hits in %i files)"), count, nFoundFiles);
wsprintf(text, TEXT(" (%i hits in %i files)"), count, _nFoundFiles);
setFinderReadOnly(false);
_scintView.insertGenericTextFrom(_lastSearchHeaderPos, text);
setFinderReadOnly(true);
Expand Down Expand Up @@ -2173,7 +2173,7 @@ void Finder::beginNewFilesSearch()
_scintView.execute(SCI_SETCURRENTPOS, 0);
_pMainFoundInfos = _pMainFoundInfos == &_foundInfos1 ? &_foundInfos2 : &_foundInfos1;
_pMainMarkings = _pMainMarkings == &_markings1 ? &_markings2 : &_markings1;
nFoundFiles = 0;
_nFoundFiles = 0;

// fold all old searches (1st level only)
_scintView.collapse(searchHeaderLevel - SC_FOLDLEVELBASE, fold_collapse);
Expand Down

0 comments on commit 0aaee08

Please sign in to comment.