git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56354
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#endif // wxUSE_SELECT_DISPATCHER
}
#endif // wxUSE_SELECT_DISPATCHER
}
- wxASSERT_MSG( gs_dispatcher, _T("failed to create any IO dispatchers") );
+ wxASSERT_MSG( gs_dispatcher, "failed to create any IO dispatchers" );
-bool wxMappedFDIODispatcher::RegisterFD(int fd, wxFDIOHandler *handler, int flags)
+bool
+wxMappedFDIODispatcher::RegisterFD(int fd, wxFDIOHandler *handler, int flags)
- wxUnusedVar(flags);
-
- wxCHECK_MSG( handler, false, _T("handler can't be NULL") );
+ wxCHECK_MSG( handler, false, "handler can't be NULL" );
// notice that it's not an error to register a handler for the same fd
// twice as it can be done with different flags -- but it is an error to
// notice that it's not an error to register a handler for the same fd
// twice as it can be done with different flags -- but it is an error to
if ( i != m_handlers.end() )
{
wxASSERT_MSG( i->second.handler == handler,
if ( i != m_handlers.end() )
{
wxASSERT_MSG( i->second.handler == handler,
- _T("registering different handler for the same fd?") );
+ "registering different handler for the same fd?" );
wxASSERT_MSG( i->second.flags != flags,
wxASSERT_MSG( i->second.flags != flags,
- _T("reregistering with the same flags?") );
+ "reregistering with the same flags?" );
}
m_handlers[fd] = wxFDIOHandlerEntry(handler, flags);
}
m_handlers[fd] = wxFDIOHandlerEntry(handler, flags);
-bool wxMappedFDIODispatcher::ModifyFD(int fd, wxFDIOHandler *handler, int flags)
+bool
+wxMappedFDIODispatcher::ModifyFD(int fd, wxFDIOHandler *handler, int flags)
- wxUnusedVar(flags);
-
- wxCHECK_MSG( handler, false, _T("handler can't be NULL") );
+ wxCHECK_MSG( handler, false, "handler can't be NULL" );
wxFDIOHandlerMap::iterator i = m_handlers.find(fd);
wxCHECK_MSG( i != m_handlers.end(), false,
wxFDIOHandlerMap::iterator i = m_handlers.find(fd);
wxCHECK_MSG( i != m_handlers.end(), false,
- _T("modifying unregistered handler?") );
+ "modifying unregistered handler?" );
i->second = wxFDIOHandlerEntry(handler, flags);
i->second = wxFDIOHandlerEntry(handler, flags);