Before/After => BeforeFirst/AfterFirst (corrects some minor bugs)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1582 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1094,8 +1094,8 @@ void wxMimeTypesManagerImpl::ReadMailcap(const wxString& strFileName)
|
||||
// is this something of the form foo=bar?
|
||||
const char *pEq = strchr(curField, '=');
|
||||
if ( pEq != NULL ) {
|
||||
wxString lhs = curField.Before('='),
|
||||
rhs = curField.After('=');
|
||||
wxString lhs = curField.BeforeFirst('='),
|
||||
rhs = curField.AfterFirst('=');
|
||||
|
||||
lhs.Trim(TRUE); // from right
|
||||
rhs.Trim(FALSE); // from left
|
||||
@@ -1143,7 +1143,9 @@ void wxMimeTypesManagerImpl::ReadMailcap(const wxString& strFileName)
|
||||
{
|
||||
// don't flood the user with error messages
|
||||
// if we don't understand something in his
|
||||
// mailcap
|
||||
// mailcap, but give them in debug mode
|
||||
// because this might be useful for the
|
||||
// programmer
|
||||
wxLogDebug
|
||||
(
|
||||
_("Mailcap file %s, line %d: unknown "
|
||||
|
Reference in New Issue
Block a user