Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eea5ae9c authored by Marco Nelissen's avatar Marco Nelissen
Browse files

Class with virtual methods should have virtual destructors too.

parent 02393118
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -127,6 +127,7 @@ public:
        va_end(ap);
    }

    virtual ~ErrorSink() {}
    virtual void verror(const char* fmt, va_list ap) = 0;
};

@@ -2003,6 +2004,7 @@ class Compiler : public ErrorSink {

    class InputStream {
    public:
        virtual ~InputStream() {}
        int getChar() {
            if (bumpLine) {
                line++;