}
private:
- virtual wxCharBuffer GetMBNul(size_t *nulLen) const
+ virtual const char *GetMBNul(size_t *nulLen) const
{
- return m_conv->GetMBNul(nulLen);
+ // cast needed to call a private function
+ return ((wxConvBrokenFileNames *)m_conv)->GetMBNul(nulLen);
}
// not the most efficient algorithm but it shouldn't matter as normally
// there are not many NULs in the string and so normally memcmp()
// should stop on the first character
- for ( const char *p = in; ; p++ )
- {
- if ( memcmp(p, nul, nulLen) == 0 )
- break;
- }
+ const char *p = in;
+ while ( memcmp(p, nul, nulLen) != 0 )
+ p++;
inLen = p - in + nulLen;
}
size_t inLen = 1,
outLen = WXSIZEOF(m_nulBuf);
self->m_nulLen = iconv(w2m, ICONV_CHAR_CAST(L""), &inLen,
- &self->m_nulBuf, &outLen);
+ (char **)&self->m_nulBuf, &outLen);
}
*nulLen = m_nulLen;