removed implicit conversion from wxString::iterator to wxStringImpl::iterator (fixes VC6 compilation)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45484 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -507,7 +507,7 @@ void wxString::PosLenToImpl(size_t pos, size_t len,
|
||||
else
|
||||
{
|
||||
const_iterator i = begin() + pos;
|
||||
*implPos = wxStringImpl::const_iterator(i) - m_impl.begin();
|
||||
*implPos = wxStringImpl::const_iterator(i.impl()) - m_impl.begin();
|
||||
if ( len == npos )
|
||||
*implLen = npos;
|
||||
else
|
||||
@@ -518,8 +518,7 @@ void wxString::PosLenToImpl(size_t pos, size_t len,
|
||||
if ( pos + len > length() )
|
||||
len = length() - pos;
|
||||
|
||||
*implLen = wxStringImpl::const_iterator(i + len) -
|
||||
wxStringImpl::const_iterator(i);
|
||||
*implLen = (i + len).impl() - i.impl();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user