Use the length of the buffer instead of recomputing it again
Micro optimization: use the already known buffer length instead of calling wcslen() to compute it again.
This commit is contained in:
parent
7fba58c743
commit
d8cf6d03dd
1 changed files with 1 additions and 1 deletions
|
|
@ -3645,7 +3645,7 @@ struct wxStringAsBufHelper<wchar_t>
|
|||
{
|
||||
wxScopedWCharBuffer wbuf(s.wc_str());
|
||||
if ( len )
|
||||
*len = wxWcslen(wbuf);
|
||||
*len = wbuf.length();
|
||||
return wbuf;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue