]> git.lyx.org Git - features.git/commitdiff
Remove redundant semicolons reported by GCC with -Wextra-semi option
authorYuriy Skalko <yuriy.skalko@gmail.com>
Tue, 28 Sep 2021 08:21:45 +0000 (11:21 +0300)
committerYuriy Skalko <yuriy.skalko@gmail.com>
Tue, 28 Sep 2021 08:28:43 +0000 (11:28 +0300)
src/LyXRC.h
src/Session.h
src/VCBackend.h
src/frontends/qt/DialogView.h
src/insets/InsetPreview.h
src/lyxfind.cpp
src/mathed/InsetMathGrid.h
src/mathed/InsetMathMacroArgument.h
src/mathed/MathStream.h
src/support/Length.h
src/xml.h

index f9b56646addd36d7945d0e408772c8e722159be5..74c0e4cfe104fdd194a2e67badccda5276eff3a8 100644 (file)
@@ -195,7 +195,7 @@ public:
        ///
        LyXRC() : user_name(support::user_name()),
                  user_email(support::user_email()) // always empty
-               {};
+               {}
 
        /// \param check_format: whether to try to convert the file format,
        /// if it is not current. this should only be true, really, for the
index b7443b9cab5eb0dd4683fd9ea330d77820ebf63f..ea5175455da24827684015646e6a1609e6b8f156 100644 (file)
@@ -361,7 +361,7 @@ class ShellEscapeSection : SessionSection
 {
 public:
        ///
-       explicit ShellEscapeSection() {};
+       explicit ShellEscapeSection() {}
 
        ///
        void read(std::istream & is) override;
index e7dc735b99a71daf6950ba5979460135cec940e1..e0f6266513f0a60553761d07481a93c90f89ad5e 100644 (file)
@@ -154,7 +154,7 @@ public:
        /// get file from repo, the caller must ensure that it does not exist locally
        static bool retrieve(support::FileName const & file);
 
-       std::string vcname() const override { return "RCS"; };
+       std::string vcname() const override { return "RCS"; }
 
        void registrer(std::string const & msg) override;
 
@@ -247,7 +247,7 @@ public:
        /// get file from repo, the caller must ensure that it does not exist locally
        static bool retrieve(support::FileName const & file);
 
-       std::string vcname() const override { return "CVS"; };
+       std::string vcname() const override { return "CVS"; }
 
        void registrer(std::string const & msg) override;
 
@@ -393,7 +393,7 @@ public:
        /// get file from repo, the caller must ensure that it does not exist locally
        static bool retrieve(support::FileName const & file);
 
-       std::string vcname() const override { return "SVN"; };
+       std::string vcname() const override { return "SVN"; }
 
        void registrer(std::string const & msg) override;
 
@@ -504,7 +504,7 @@ public:
        /// get file from repo, the caller must ensure that it does not exist locally
        static bool retrieve(support::FileName const & file);
 
-       std::string vcname() const override { return "GIT"; };
+       std::string vcname() const override { return "GIT"; }
 
        void registrer(std::string const & msg) override;
 
index ee29471695bba82b9341d4156b6f2fe53b67b725..514242e92668933ed190981b8454706ddc468caf 100644 (file)
@@ -47,7 +47,7 @@ protected:
        void hideEvent(QHideEvent * ev) override;
 
 protected Q_SLOTS:
-       void onBufferViewChanged() override {};
+       void onBufferViewChanged() override {}
 };
 
 } // namespace frontend
index ca6641a8869ca12854cba1a7c3c597f3965636f4..f36ea56fa5a31d7de14192e0c89413d24187f80c 100644 (file)
@@ -69,7 +69,7 @@ public:
 
        void edit(Cursor & cur, bool front, EntryDirection entry_from) override;
 
-       bool canPaintChange(BufferView const &) const override { return true; };
+       bool canPaintChange(BufferView const &) const override { return true; }
        //@}
 
 protected:
index 004e10b51ed043fc4423f87d861ee8c7e78a3ce6..4a8c0372dfb3f1b6b09848e8ed82bb7b24769547 100644 (file)
@@ -935,7 +935,7 @@ public:
        int pos_len;
        int searched_size;
        vector <string> result = vector <string>();
-       MatchResult(int len = 0): match_len(len),match_prefix(0),match2end(0), pos(0),leadsize(0),pos_len(-1),searched_size(0) {};
+       MatchResult(int len = 0): match_len(len),match_prefix(0),match2end(0), pos(0),leadsize(0),pos_len(-1),searched_size(0) {}
 };
 
 static MatchResult::range interpretMatch(MatchResult &oldres, MatchResult &newres)
@@ -1248,7 +1248,7 @@ class KeyInfo {
 
 class Border {
  public:
- Border(int l=0, int u=0) : low(l), upper(u) {};
+ Border(int l=0, int u=0) : low(l), upper(u) {}
   int low;
   int upper;
 };
@@ -1920,7 +1920,7 @@ class LatexInfo {
     buildKeys(isPatternString);
     entries_ = vector<KeyInfo>();
     buildEntries(isPatternString);
-  };
+  }
   int getFirstKey() {
     entidx_ = 0;
     if (entries_.empty()) {
@@ -1941,7 +1941,7 @@ class LatexInfo {
         return -1;
     }
     return 0;
-  };
+  }
   int getNextKey() {
     entidx_++;
     if (int(entries_.size()) > entidx_) {
@@ -1950,7 +1950,7 @@ class LatexInfo {
     else {
       return -1;
     }
-  };
+  }
   bool setNextKey(int idx) {
     if ((idx == entidx_) && (entidx_ >= 0)) {
       entidx_--;
@@ -1958,7 +1958,7 @@ class LatexInfo {
     }
     else
       return false;
-  };
+  }
   int find(int start, KeyInfo::KeyType keytype) const {
     if (start < 0)
       return -1;
@@ -1969,20 +1969,20 @@ class LatexInfo {
       tmpIdx++;
     }
     return -1;
-  };
+  }
   int process(ostringstream & os, KeyInfo const & actual);
   int dispatch(ostringstream & os, int previousStart, KeyInfo & actual);
-  // string show(int lastpos) { return interval.show(lastpos);};
-  int nextNotIgnored(int start) { return interval_.nextNotIgnored(start);};
+  // string show(int lastpos) { return interval.show(lastpos);}
+  int nextNotIgnored(int start) { return interval_.nextNotIgnored(start);}
   KeyInfo &getKeyInfo(int keyinfo) {
     static KeyInfo invalidInfo = KeyInfo();
     if ((keyinfo < 0) || ( keyinfo >= int(entries_.size())))
       return invalidInfo;
     else
       return entries_[keyinfo];
-  };
-  void setForDefaultLang(KeyInfo const & defLang) {interval_.setForDefaultLang(defLang);};
-  void addIntervall(int low, int up) { interval_.addIntervall(low, up); };
+  }
+  void setForDefaultLang(KeyInfo const & defLang) {interval_.setForDefaultLang(defLang);}
+  void addIntervall(int low, int up) { interval_.addIntervall(low, up); }
 };
 
 
@@ -2036,7 +2036,7 @@ class MathInfo {
     m.mathSize = m.mathEnd - m.mathStart;
     entries_.push_back(m);
   }
-  bool empty() const { return entries_.empty(); };
+  bool empty() const { return entries_.empty(); }
   size_t getEndPos() const {
     if (entries_.empty() || (actualIdx_ >= entries_.size())) {
       return 0;
@@ -2071,7 +2071,7 @@ class MathInfo {
     }
     return entries_[actualIdx_].mathSize;
   }
-  void incrEntry() { actualIdx_++; };
+  void incrEntry() { actualIdx_++; }
 };
 
 void LatexInfo::buildEntries(bool isPatternString)
index 70e9ddb4ca84523ec785f968881aca79b85e1d14..ce8a8524011c44b60d614589bc2d8caf93b5c40f 100644 (file)
@@ -94,7 +94,7 @@ public:
        InsetMathGrid(Buffer * buf, col_type m, row_type n, char valign,
                docstring const & halign);
        ///
-       marker_type marker(BufferView const *) const override { return marker_type::MARKER2; };
+       marker_type marker(BufferView const *) const override { return marker_type::MARKER2; }
        ///
        void metrics(MetricsInfo & mi, Dimension &) const override;
        ///
index 441ac3266fbf98365c674a61c5e5f2ab5bf989dd..c11a9a6dbb2928b31c0aacb93e05db3f4a162f94 100644 (file)
@@ -24,7 +24,7 @@ namespace lyx {
 // A # that failed to parse
 class InsetMathHash : public InsetMath {
 public:
-       explicit InsetMathHash(docstring const & str = docstring()) : str_('#' + str) {};
+       explicit InsetMathHash(docstring const & str = docstring()) : str_('#' + str) {}
        ///
        void metrics(MetricsInfo & mi, Dimension & dim) const override;
        ///
index d55831de37ea58541ea28d5d1f88675b83df6d57..d6a35c5e89f64476e5fbffcf1fb4b83d11452854 100644 (file)
@@ -107,7 +107,7 @@ public:
        /// tell whether to use only ascii chars when producing latex code
        bool asciiOnly() const { return ascii_; }
        /// tell whether we are in a MathClass inset
-       void inMathClass(bool mathclass) { mathclass_ = mathclass; };
+       void inMathClass(bool mathclass) { mathclass_ = mathclass; }
        /// tell whether we are in a MathClass inset
        bool inMathClass() const { return mathclass_; }
        /// LaTeX encoding
index 03b4d366b08fc294e15f340c2c1922e35f970a43..cb612b6135c8b9b7027eb0aa915756e07449a9a8 100644 (file)
@@ -69,9 +69,9 @@ public:
        explicit Length(std::string const & data);
 
        ///
-       double value() const { return val_; };
+       double value() const { return val_; }
        ///
-       Length::UNIT unit() const { return unit_; };
+       Length::UNIT unit() const { return unit_; }
        ///
        void value(double val) { val_ = val; }
        ///
index 471d925201f44d4e6cf21999b56a8c657c2643b0..b3569baa79ec211c094efa8e9645e450b52c3167 100644 (file)
--- a/src/xml.h
+++ b/src/xml.h
@@ -101,7 +101,7 @@ public:
        /// Is the last tag that was added to the stream a new line (CR)? This is mostly to known
        /// whether a new line must be added. Therefore, consider that an empty stream just had a CR,
        /// that simplifies the logic using this code.
-       bool isLastTagCR() const { return is_last_tag_cr_; };
+       bool isLastTagCR() const { return is_last_tag_cr_; }
        ///
        void writeError(std::string const &);
        ///