No real changes, just backwards propagate the changes to stc.cpp.
Apply the changes done directly to stc.cpp in r71428 and r71429 to the script generating this code. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71539 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -88,8 +88,8 @@ methodOverrideMap = {
|
|||||||
'void %s(const wxString& text);',
|
'void %s(const wxString& text);',
|
||||||
|
|
||||||
'''void %s(const wxString& text) {
|
'''void %s(const wxString& text) {
|
||||||
wxWX2MBbuf buf = (wxWX2MBbuf)wx2stc(text);
|
const wxWX2MBbuf buf = wx2stc(text);
|
||||||
SendMsg(%s, buf.length()-1, (sptr_t)(const char*)buf);''',
|
SendMsg(%s, wx2stclen(text, buf), (sptr_t)(const char*)buf);''',
|
||||||
0),
|
0),
|
||||||
|
|
||||||
'AddStyledText' : (0,
|
'AddStyledText' : (0,
|
||||||
@@ -103,8 +103,8 @@ methodOverrideMap = {
|
|||||||
'void %s(const wxString& text);',
|
'void %s(const wxString& text);',
|
||||||
|
|
||||||
'''void %s(const wxString& text) {
|
'''void %s(const wxString& text) {
|
||||||
wxWX2MBbuf buf = (wxWX2MBbuf)wx2stc(text);
|
const wxWX2MBbuf buf = wx2stc(text);
|
||||||
SendMsg(%s, buf.length()-1, (sptr_t)(const char*)buf);''',
|
SendMsg(%s, wx2stclen(text, buf), (sptr_t)(const char*)buf);''',
|
||||||
0),
|
0),
|
||||||
|
|
||||||
'GetViewWS' : ( 'GetViewWhiteSpace', 0, 0, 0),
|
'GetViewWS' : ( 'GetViewWhiteSpace', 0, 0, 0),
|
||||||
@@ -439,7 +439,7 @@ methodOverrideMap = {
|
|||||||
TextToFind ft;
|
TextToFind ft;
|
||||||
ft.chrg.cpMin = minPos;
|
ft.chrg.cpMin = minPos;
|
||||||
ft.chrg.cpMax = maxPos;
|
ft.chrg.cpMax = maxPos;
|
||||||
wxWX2MBbuf buf = (wxWX2MBbuf)wx2stc(text);
|
const wxWX2MBbuf buf = wx2stc(text);
|
||||||
ft.lpstrText = (char*)(const char*)buf;
|
ft.lpstrText = (char*)(const char*)buf;
|
||||||
|
|
||||||
return SendMsg(%s, flags, (sptr_t)&ft);''',
|
return SendMsg(%s, flags, (sptr_t)&ft);''',
|
||||||
@@ -596,8 +596,8 @@ methodOverrideMap = {
|
|||||||
|
|
||||||
'''
|
'''
|
||||||
int %s(const wxString& text) {
|
int %s(const wxString& text) {
|
||||||
wxWX2MBbuf buf = (wxWX2MBbuf)wx2stc(text);
|
const wxWX2MBbuf buf = wx2stc(text);
|
||||||
return SendMsg(%s, buf.length()-1, (sptr_t)(const char*)buf);''',
|
return SendMsg(%s, wx2stclen(text, buf), (sptr_t)(const char*)buf);''',
|
||||||
0),
|
0),
|
||||||
|
|
||||||
'ReplaceTargetRE' :
|
'ReplaceTargetRE' :
|
||||||
@@ -606,8 +606,8 @@ methodOverrideMap = {
|
|||||||
|
|
||||||
'''
|
'''
|
||||||
int %s(const wxString& text) {
|
int %s(const wxString& text) {
|
||||||
wxWX2MBbuf buf = (wxWX2MBbuf)wx2stc(text);
|
const wxWX2MBbuf buf = wx2stc(text);
|
||||||
return SendMsg(%s, buf.length()-1, (sptr_t)(const char*)buf);''',
|
return SendMsg(%s, wx2stclen(text, buf), (sptr_t)(const char*)buf);''',
|
||||||
0),
|
0),
|
||||||
|
|
||||||
'SearchInTarget' :
|
'SearchInTarget' :
|
||||||
@@ -616,8 +616,8 @@ methodOverrideMap = {
|
|||||||
|
|
||||||
'''
|
'''
|
||||||
int %s(const wxString& text) {
|
int %s(const wxString& text) {
|
||||||
wxWX2MBbuf buf = (wxWX2MBbuf)wx2stc(text);
|
const wxWX2MBbuf buf = wx2stc(text);
|
||||||
return SendMsg(%s, buf.length()-1, (sptr_t)(const char*)buf);''',
|
return SendMsg(%s, wx2stclen(text, buf), (sptr_t)(const char*)buf);''',
|
||||||
0),
|
0),
|
||||||
|
|
||||||
# not sure what to do about these yet
|
# not sure what to do about these yet
|
||||||
|
Reference in New Issue
Block a user