/////////////////////////////////////////////////////////////////////////////
-// Name: src/common/mediactrl.cpp
+// Name: src/common/mediactrlcmn.cpp
// Purpose: wxMediaCtrl common code
// Author: Ryan Norton <wxprojects@comcast.net>
// Modified by:
{
if (!Load(fileName))
{
- delete m_imp;
- m_imp = NULL;
+ wxDELETE(m_imp);
return false;
}
}
while((classInfo = NextBackend(&it)) != NULL)
{
- wxLogMessage( classInfo->GetClassName() );
if(!DoCreate(classInfo, parent, id,
pos, size, style, validator, name))
continue;
if (!Load(location))
{
- delete m_imp;
- m_imp = NULL;
+ wxDELETE(m_imp);
return false;
}
*it != end; ++(*it) )
{
const wxClassInfo* classInfo = **it;
- if ( classInfo->IsKindOf(CLASSINFO(wxMediaBackend)) &&
- classInfo != CLASSINFO(wxMediaBackend) )
+ if ( classInfo->IsKindOf(wxCLASSINFO(wxMediaBackend)) &&
+ classInfo != wxCLASSINFO(wxMediaBackend) )
{
++(*it);
return classInfo;
//
#include "wx/html/forcelnk.h"
-#ifdef __WXMSW__ // MSW has huge backends so we do it seperately
+#ifdef __WXMSW__ // MSW has huge backends so we do it separately
FORCE_LINK(wxmediabackend_am)
FORCE_LINK(wxmediabackend_wmp10)
-#elif !defined(__WXOSX_COCOA__)
+#else
FORCE_LINK(basewxmediabackends)
#endif