Declare override, otherwise we get the following warning:

src/insets/InsetListings.h:42:7: error: 'isEnvironment' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
        bool isEnvironment() const { return !params().isInline(); }
             ^
src/insets/Inset.h:606:15: note: overridden virtual function is here
        virtual bool isEnvironment() const { return getLayout().latextype() == InsetLaTeXType::ENVIRONMENT; }
                     ^
1 error generated.
This commit is contained in:
Scott Kostyshak 2023-04-10 13:10:11 -04:00
parent e3288b4b4a
commit 7368e5be2b

View File

@ -39,7 +39,7 @@ public:
///
static std::string params2string(InsetListingsParams const &);
///
bool isEnvironment() const { return !params().isInline(); }
bool isEnvironment() const override { return !params().isInline(); }
private:
///
bool isLabeled() const override { return true; }