Wie in EPG schreiben??

  • Hi


    Habe mithilfe des PremiereEPG- und des Nordlicht's EPG - Plugin das Verwenden des EPGs verstanden... habe jetzt aber noch ein (oder zwei, verstehe die Fehlermeldung nicht so) Problem:



    Habe jetzt folgendes:



    und jetzt bekomme ich folgendes:


    Code
    g++ -fPIC -g -O2 -Wall -Woverloaded-virtual -c -D_GNU_SOURCE -DPLUGIN_NAME_I18N='"webepg"' -I../../../include -I../../../../DVB/include  webepg.c
    webepg.c: In member function ‘virtual void cWebepg::Action()’:
    webepg.c:228: error: passing ‘const cSchedule’ as ‘this’ argument of ‘void cSchedule::Cleanup()’ discards qualifiers
    webepg.c:232: error: passing ‘const cSchedule’ as ‘this’ argument of ‘cEvent* cSchedule::AddEvent(cEvent*)’ discards qualifiers
    make: *** [webepg.o] Fehler 1


    Das ist das letzte Problem vorm ersten Release, also bitte helft mir schnell!!


    mfg

    VDR: AMD A4-3400, 4096 MB RAM, Technisat SkyStar HD2, Technisat Skystar USB HD
    openSUSE 13.1, VDR 2.0.4, vdr-xineliboutput

  • Hi,


    das sagt Herr Google:


    Zitat

    passing `const XXX' as `this' argument of `YYY' discards qualifiers


    Const member functions have the restriction that they cannot modify their object. Therefore, any member functions of the object that are called from within the function, either directly or indirectly, must also be a const. Otherwise, there is no guarantee that the non-const function will not modify the object and violate the const function's restriction. This also applies to objects declared as const. You cannot call non-const member functions for these objects. In this error message, XXX is the const object you are calling with and YYY is the const member function being called.


    heißt also, dass z.B. die Funktion Cleanup auch const sein müßte, damit Du sie verwenden könntest.


    EDIT: denke mal faßt, Du wirst das nicht anders machen können, als auf SVDRP (PUTE) auszuweichen.


    Tschüss,


    winni

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!