Re: wxWidgets 2.9 build - Mailing list pgadmin-hackers

From Peter Geoghegan
Subject Re: wxWidgets 2.9 build
Date
Msg-id AANLkTi=a7zC7CSzX4CosNa8AePtu_DJ+DUUZo33wx-_P@mail.gmail.com
Whole thread Raw
In response to Re: wxWidgets 2.9 build  (Dave Page <dpage@pgadmin.org>)
Responses Re: wxWidgets 2.9 build  (Dave Page <dpage@pgadmin.org>)
List pgadmin-hackers
I had another look at ctlSQLBox::RegexFindText() this evening. I'm
just going to use the equivalent wx functionality. So, our drop in
replacement for wx2stc() is:

wxWX2MBbuf ctlSQLBox::StrStc(const wxString& str)
{

#if wxUSE_UNICODE
    return str.mb_str(wxConvUTF8);
#else
    return str.mbc_str();
#endif

}

This appears to work fine. Objections?

--
Regards,
Peter Geoghegan

pgadmin-hackers by date:

Previous
From: Dave Page
Date:
Subject: pgAdmin III commit: Store the servers on exit, to ensure we store the l
Next
From: Dave Page
Date:
Subject: Re: wxWidgets 2.9 build