Fix indentation

This commit is contained in:
Juergen Spitzmueller 2022-04-04 12:02:25 +02:00
parent bbf21502bf
commit 31ac9ed59f

View File

@ -1075,8 +1075,7 @@ void MatchStringAdv::FillResults(MatchResult &found_mr)
valid_matches = found_mr.result.size();
for (size_t i = 0; i < found_mr.result.size(); i++)
matches[i] = found_mr.result[i];
}
else
} else
valid_matches = 0;
}
@ -1343,9 +1342,9 @@ class Border {
class Intervall {
bool isPatternString_;
public:
explicit Intervall(bool isPattern, string const & p) :
isPatternString_(isPattern), par(p), ignoreidx(-1), actualdeptindex(0),
hasTitle(false), langcount(0)
explicit Intervall(bool isPattern, string const & p)
: isPatternString_(isPattern), par(p), ignoreidx(-1),
actualdeptindex(0), hasTitle(false), langcount(0)
{
depts[0] = 0;
closes[0] = 0;
@ -1369,7 +1368,9 @@ public:
int findclosing(int start, int end, char up, char down, int repeat);
void handleParentheses(int lastpos, bool closingAllowed);
bool hasTitle;
int langcount; // Number of disabled language specs up to current position in actual interval
// Number of disabled language specs up
// to current position in actual interval
int langcount;
int isOpeningPar(int pos) const;
string titleValue;
void output(ostringstream &os, int lastpos);
@ -1399,9 +1400,8 @@ void Intervall::setForDefaultLang(KeyInfo const & defLang) const
if (ignoreidx >= 0) {
int value = defLang._tokenstart + defLang._tokensize;
int borderidx = 0;
if (hasTitle) {
if (hasTitle)
borderidx = 1;
}
if (value > 0) {
if (borders[borderidx].low < value)
borders[borderidx].low = value;