use buf.length() instead of strlen()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70534 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -89,7 +89,7 @@ methodOverrideMap = {
|
|||||||
|
|
||||||
'''void %s(const wxString& text) {
|
'''void %s(const wxString& text) {
|
||||||
wxWX2MBbuf buf = (wxWX2MBbuf)wx2stc(text);
|
wxWX2MBbuf buf = (wxWX2MBbuf)wx2stc(text);
|
||||||
SendMsg(%s, strlen(buf), (sptr_t)(const char*)buf);''',
|
SendMsg(%s, buf.length(), (sptr_t)(const char*)buf);''',
|
||||||
0),
|
0),
|
||||||
|
|
||||||
'AddStyledText' : (0,
|
'AddStyledText' : (0,
|
||||||
@@ -104,7 +104,7 @@ methodOverrideMap = {
|
|||||||
|
|
||||||
'''void %s(const wxString& text) {
|
'''void %s(const wxString& text) {
|
||||||
wxWX2MBbuf buf = (wxWX2MBbuf)wx2stc(text);
|
wxWX2MBbuf buf = (wxWX2MBbuf)wx2stc(text);
|
||||||
SendMsg(%s, strlen(buf), (sptr_t)(const char*)buf);''',
|
SendMsg(%s, buf.length(), (sptr_t)(const char*)buf);''',
|
||||||
0),
|
0),
|
||||||
|
|
||||||
'GetViewWS' : ( 'GetViewWhiteSpace', 0, 0, 0),
|
'GetViewWS' : ( 'GetViewWhiteSpace', 0, 0, 0),
|
||||||
@@ -597,7 +597,7 @@ methodOverrideMap = {
|
|||||||
'''
|
'''
|
||||||
int %s(const wxString& text) {
|
int %s(const wxString& text) {
|
||||||
wxWX2MBbuf buf = (wxWX2MBbuf)wx2stc(text);
|
wxWX2MBbuf buf = (wxWX2MBbuf)wx2stc(text);
|
||||||
return SendMsg(%s, strlen(buf), (sptr_t)(const char*)buf);''',
|
return SendMsg(%s, buf.length(), (sptr_t)(const char*)buf);''',
|
||||||
0),
|
0),
|
||||||
|
|
||||||
'ReplaceTargetRE' :
|
'ReplaceTargetRE' :
|
||||||
@@ -607,7 +607,7 @@ methodOverrideMap = {
|
|||||||
'''
|
'''
|
||||||
int %s(const wxString& text) {
|
int %s(const wxString& text) {
|
||||||
wxWX2MBbuf buf = (wxWX2MBbuf)wx2stc(text);
|
wxWX2MBbuf buf = (wxWX2MBbuf)wx2stc(text);
|
||||||
return SendMsg(%s, strlen(buf), (sptr_t)(const char*)buf);''',
|
return SendMsg(%s, buf.length(), (sptr_t)(const char*)buf);''',
|
||||||
0),
|
0),
|
||||||
|
|
||||||
'SearchInTarget' :
|
'SearchInTarget' :
|
||||||
@@ -617,7 +617,7 @@ methodOverrideMap = {
|
|||||||
'''
|
'''
|
||||||
int %s(const wxString& text) {
|
int %s(const wxString& text) {
|
||||||
wxWX2MBbuf buf = (wxWX2MBbuf)wx2stc(text);
|
wxWX2MBbuf buf = (wxWX2MBbuf)wx2stc(text);
|
||||||
return SendMsg(%s, strlen(buf), (sptr_t)(const char*)buf);''',
|
return SendMsg(%s, buf.length(), (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