Avoid conversion from wxString to wxChar* and back in wxListBase::DoCopy().
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 20 May 2011 14:29:07 +0000 (14:29 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 20 May 2011 14:29:07 +0000 (14:29 +0000)
commit9ed406c39de65f24da3a3210a7651e7ee6cf1923
treeb9c93f818aef9ee8ddd3510526134c5b6b752e4b
parent1d8340b95698d5e27a72bd1aee423a0b954e85b1
Avoid conversion from wxString to wxChar* and back in wxListBase::DoCopy().

Don't use temporary wxChar* variable to store the node string. This is not
only inefficient because we need to convert wxString to it only to convert it
back to wxString on the next line but also breaks compilation when
wxUSE_STD_STRING==1 and wxUSE_STD_CONTAINERS==0 as there is no implicit
conversion between wxString and wxChar* in this case.

Also modify the code for long keys in the same way just for consistency.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67769 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/list.cpp