Re: Preferences dialog: Not implementing options without hacks

From: Marc Maurer (j.m.maurer_at_student.utwente.nl)
Date: Fri Apr 09 2004 - 16:15:00 EDT

  • Next message: Marc Maurer: "Re: commit (HEAD): xap_Strings.h/cpp"

    > > You'll only need to change the getter/setters in xp and unix this way too.
    >
    > All the setters/getters are already virtual in the XP code. When not
    > implementing but declaring them, I get the following error during
    > linking:
    > ../../../../src/wp/ap/libAp.a(ap_UnixDialog_Options.o)(.gnu.linkonce.r._ZTV21AP_UnixDialog_Options+0x58): undefined reference to `AP_UnixDialog_Options::_gatherSpellInternet()'
    > ../../../../src/wp/ap/libAp.a(ap_UnixDialog_Options.o)(.gnu.linkonce.r._ZTV21AP_UnixDialog_Options+0x5c): undefined reference to `AP_UnixDialog_Options::_setSpellInternet(bool)'
    >
    > Murray told me on IRC that they are "pure" virtual functions and need to
    > be implemented in derived classes. Can't we unpurify them?

    sure, just add some nice { } braces to unpurify them in the XP header.

    Then you _can_ override then in derived classes, but you don't _have_
    to.

    Marc



    This archive was generated by hypermail 2.1.4 : Fri Apr 09 2004 - 16:13:18 EDT