[mythtv-commits] Ticket #4264: MythContext restructure

MythTV mythtv at cvs.mythtv.org
Thu Dec 20 02:57:34 UTC 2007


#4264: MythContext restructure
--------------------+-------------------------------------------------------
 Reporter:  nigel   |        Owner:  nigel
     Type:  task    |       Status:  new  
 Priority:  minor   |    Milestone:  0.21 
Component:  mythtv  |      Version:  head 
 Severity:  medium  |   Resolution:       
  Mlocked:  0       |  
--------------------+-------------------------------------------------------

Comment(by nigel):

 It looks like the behaviour of this on OS X is very different to Linux.

 On OS X, it uses the vtable of the sub-classes, so gContext->Blah() calls
 MythContextGUI::Blah()

 On Linux, it seems to always have the base class's type. There is probaly
 some C++ qualifier to get around this, but it is beyond my current
 understanding of the language - I barely understand inheritance, let alone
 inheritance with pure-virtual methods :-)

 I have a patch that eliminates all cross-dependencies on OS X, but to get
 it working on Linux I might have to change this all again :-(

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/4264#comment:2>
MythTV <http://svn.mythtv.org/trac>
MythTV


More information about the mythtv-commits mailing list