Trivial clean-up

This commit is contained in:
Guillaume Munch 2016-08-28 02:34:34 +01:00
parent cb0a4c6639
commit 76d0c6759f
2 changed files with 3 additions and 5 deletions

View File

@ -20,8 +20,7 @@ namespace lyx {
namespace frontend {
LaTeXHighlighter::LaTeXHighlighter(QTextDocument * parent,
bool const at_letter)
LaTeXHighlighter::LaTeXHighlighter(QTextDocument * parent, bool at_letter)
: QSyntaxHighlighter(parent), at_letter_(at_letter)
{
auto blend = [](QColor color1, QColor color2) {

View File

@ -25,8 +25,7 @@ namespace frontend {
class LaTeXHighlighter : public QSyntaxHighlighter
{
public:
explicit LaTeXHighlighter(QTextDocument * parent,
bool const at_letter = false);
explicit LaTeXHighlighter(QTextDocument * parent, bool at_letter = false);
protected:
void highlightBlock(QString const & text);
@ -36,7 +35,7 @@ private:
QTextCharFormat keywordFormat;
QTextCharFormat mathFormat;
QTextCharFormat warningFormat;
// is at a letter (as in the preamble)
// is at a letter? (as in the preamble)
bool const at_letter_;
};