]> git.lyx.org Git - features.git/blobdiff - src/insets/InsetBibtex.h
Add `override` specifiers to improve code maintainability
[features.git] / src / insets / InsetBibtex.h
index 932fb0f48a720e1b550ee34766f07ecfc293e3f3..d82d8adab47d923d1db0968f5f75c328004c78c9 100644 (file)
@@ -37,38 +37,38 @@ public:
        ///
        bool delDatabase(docstring const &);
        ///
-       void write(std::ostream &) const;
+       void write(std::ostream &) const override;
 
        /// \name Public functions inherited from Inset class
        //@{
        ///
-       docstring toolTip(BufferView const & bv, int x, int y) const;
+       docstring toolTip(BufferView const & bv, int x, int y) const override;
        ///
-       bool hasSettings() const { return true; }
+       bool hasSettings() const override { return true; }
        ///
-       InsetCode lyxCode() const { return BIBTEX_CODE; }
+       InsetCode lyxCode() const override { return BIBTEX_CODE; }
        ///
-       RowFlags rowFlags() const { return Display; }
+       RowFlags rowFlags() const override { return Display; }
        ///
-       void latex(otexstream &, OutputParams const &) const;
+       void latex(otexstream &, OutputParams const &) const override;
        ///
        int plaintext(odocstringstream & ods, OutputParams const & op,
-                     size_t max_length = INT_MAX) const;
+                     size_t max_length = INT_MAX) const override;
        ///
-       void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false);
+       void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false) override;
        ///
        void addToToc(DocIterator const & di, bool output_active,
-                                 UpdateType utype, TocBackend & backend) const;
+                                 UpdateType utype, TocBackend & backend) const override;
        ///
-       void collectBibKeys(InsetIterator const &, support::FileNameList &) const;
+       void collectBibKeys(InsetIterator const &, support::FileNameList &) const override;
        ///
-       void validate(LaTeXFeatures &) const;
+       void validate(LaTeXFeatures &) const override;
        ///
-       docstring xhtml(XMLStream &, OutputParams const &) const;
+       docstring xhtml(XMLStream &, OutputParams const &) const override;
        ///
-       void docbook(XMLStream &, OutputParams const &) const;
+       void docbook(XMLStream &, OutputParams const &) const override;
        ///
-       std::string contextMenuName() const;
+       std::string contextMenuName() const override;
        //@}
 
        /// \name Static public methods obligated for InsetCommand derived classes
@@ -98,17 +98,17 @@ private:
        //@{
        ///
        bool getStatus(Cursor & cur, FuncRequest const & cmd,
-               FuncStatus & flag) const;
+               FuncStatus & flag) const override;
        ///
-       void doDispatch(Cursor & cur, FuncRequest & cmd);
+       void doDispatch(Cursor & cur, FuncRequest & cmd) override;
        ///
-       Inset * clone() const { return new InsetBibtex(*this); }
+       Inset * clone() const override { return new InsetBibtex(*this); }
        //@}
 
        /// \name Private functions inherited from InsetCommand class
        //@{
        ///
-       docstring screenLabel() const;
+       docstring screenLabel() const override;
        //@}
 };