X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/536a020f8a34d5f5ca25c00ecb412bce5f1b501e..7e48d7d9fb4b546e6a68239e8a77ce7ef79df3b0:/src/stc/gen_iface.py?ds=sidebyside diff --git a/src/stc/gen_iface.py b/src/stc/gen_iface.py index 82de85895b..3da52f8420 100644 --- a/src/stc/gen_iface.py +++ b/src/stc/gen_iface.py @@ -254,7 +254,7 @@ methodOverrideMap = { TextToFind ft; ft.chrg.cpMin = minPos; ft.chrg.cpMax = maxPos; - wxWX2MBbuf buf = wx2stc(text); + wxWX2MBbuf buf = (wxWX2MBbuf)wx2stc(text); ft.lpstrText = (char*)(const char*)buf; return SendMsg(%s, flags, (long)&ft);''', @@ -488,13 +488,13 @@ methodOverrideMap = { 'AddRefDocument' : (0, 'void %s(void* docPointer);', '''void %s(void* docPointer) { - SendMsg(%s, (long)docPointer);''', + SendMsg(%s, 0, (long)docPointer);''', 0), 'ReleaseDocument' : (0, 'void %s(void* docPointer);', '''void %s(void* docPointer) { - SendMsg(%s, (long)docPointer);''', + SendMsg(%s, 0, (long)docPointer);''', 0), 'SetCodePage' : (0, 0,