///
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
{
public:
///
- explicit ShellEscapeSection() {};
+ explicit ShellEscapeSection() {}
///
void read(std::istream & is) override;
/// 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;
/// 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;
/// 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;
/// 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;
void hideEvent(QHideEvent * ev) override;
protected Q_SLOTS:
- void onBufferViewChanged() override {};
+ void onBufferViewChanged() override {}
};
} // namespace frontend
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:
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)
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;
};
buildKeys(isPatternString);
entries_ = vector<KeyInfo>();
buildEntries(isPatternString);
- };
+ }
int getFirstKey() {
entidx_ = 0;
if (entries_.empty()) {
return -1;
}
return 0;
- };
+ }
int getNextKey() {
entidx_++;
if (int(entries_.size()) > entidx_) {
else {
return -1;
}
- };
+ }
bool setNextKey(int idx) {
if ((idx == entidx_) && (entidx_ >= 0)) {
entidx_--;
}
else
return false;
- };
+ }
int find(int start, KeyInfo::KeyType keytype) const {
if (start < 0)
return -1;
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); }
};
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;
}
return entries_[actualIdx_].mathSize;
}
- void incrEntry() { actualIdx_++; };
+ void incrEntry() { actualIdx_++; }
};
void LatexInfo::buildEntries(bool isPatternString)
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;
///
// 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;
///
/// 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
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; }
///
/// 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 &);
///