fix warning for mingw32

This commit is contained in:
lsv 2025-10-16 09:24:07 +05:00
parent 7db41df697
commit 0f91ec5e67
12 changed files with 55 additions and 33 deletions

View file

@ -818,8 +818,10 @@ void ctlSQLBox::OnKeyDown(wxKeyEvent &event)
bool isAddDict = false;
s = GetTextRange(homewordpos, pos);
if (uc != WXK_NONE)
if (uc == 8) s = s.Left(s.length() - 1);
else if (uc >= 'A') s += uc;
{
if (uc == 8) {s = s.Left(s.length() - 1);}
else {if (uc >= 'A') s += uc;}
}
if (uc >= ' ' && uc < 'A') isAddDict = true;
auto it = m_hint_words.lower_bound(s);
wxString strlist;
@ -1459,7 +1461,7 @@ std::pair<int,int> ctlSQLBox::SelectQuery(int startposition)
int pend=endPos;
int pstart=0;
if ((ch == ';')) {
if (ch == ';') {
pend=pos;
pos=pos-1;
} else