From 00841d5a222e93a124ec486f4a77da0f734b5cca Mon Sep 17 00:00:00 2001 From: Don HO Date: Sat, 12 Sep 2020 16:32:53 +0200 Subject: [PATCH] Fix build warning issue by using v140_xp --- PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp index eb7acdce7..f8ebc6f03 100644 --- a/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp +++ b/PowerEditor/src/ScitillaComponent/FindReplaceDlg.cpp @@ -1465,7 +1465,8 @@ INT_PTR CALLBACK FindReplaceDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM case IDNORMAL: case IDEXTENDED: - case IDREGEXP : { + case IDREGEXP : + { if (isCheckedOrNot(IDREGEXP)) { _options._searchType = FindRegex; @@ -1503,15 +1504,16 @@ INT_PTR CALLBACK FindReplaceDlg::run_dlgProc(UINT message, WPARAM wParam, LPARAM enableFindDlgItem(IDWHOLEWORD, !isRegex); // regex upward search is disabled - BOOL doEnable = TRUE; + bool doEnable = true; if (isRegex && !nppParamInst.regexBackward4PowerUser()) { - doEnable = FALSE; + doEnable = false; } enableFindDlgItem(IDC_BACKWARDDIRECTION, doEnable); enableFindDlgItem(IDC_FINDPREV, doEnable); - return TRUE; } + return TRUE; + } case IDWRAP : findHistory._isWrap = _options._isWrapAround = isCheckedOrNot(IDWRAP);