]> git.lyx.org Git - features.git/commitdiff
Amend 1dc66608
authorScott Kostyshak <skostysh@lyx.org>
Mon, 10 Apr 2023 17:10:11 +0000 (13:10 -0400)
committerScott Kostyshak <skostysh@lyx.org>
Mon, 10 Apr 2023 17:14:15 +0000 (13:14 -0400)
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.

src/insets/InsetListings.h

index 080b7b788224f26d8f33ce4a772138d4d197ec41..d75f96851e95c0aeda8d021f600388fc3c9c3644 100644 (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; }