]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetTOC.h
move the validation code from InsetFlex to InsetCollapsable
[lyx.git] / src / insets / InsetTOC.h
index 102ff1d403d9d05a8a8504c961ba5e34f9d2ff0c..4dce5882a49be944a70d682aa29aa5f5a81c362f 100644 (file)
@@ -41,9 +41,9 @@ public:
        static std::string defaultCommand() { return "tableofcontents"; };
        ///
        static bool isCompatibleCommand(std::string const & cmd)
-               {return cmd == defaultCommand(); }
+               { return cmd == defaultCommand(); }
 private:
-       virtual Inset * clone() const;
+       Inset * clone() const { return new InsetTOC(*this); }
 };