X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FLexer.h;h=46355905b4c7a32f7aa7b97fa99c95015ae088b9;hb=d8ab0622c5354ae2d181e9eae56764211285706c;hp=fbe27602c812fd49ca586a63768ec4d6cbe754c8;hpb=a5263e0f927034885870a65053ef3908d1c6f885;p=lyx.git diff --git a/src/Lexer.h b/src/Lexer.h index fbe27602c8..46355905b4 100644 --- a/src/Lexer.h +++ b/src/Lexer.h @@ -19,8 +19,6 @@ #include "support/strfwd.h" -#include - namespace lyx { @@ -41,12 +39,14 @@ struct keyword_item { Example: - int readParam(LyxLex &lex) { - int param = 1; // default value + int readParam(LyxLex & lex) + { + int param = 1; // default value if (lex.isOK()) { // the lexer has data to read - int p; // temporary variable + int p; // temporary variable lex >> p; - if (lex) param = p; // only use the input if reading was successful + if (lex) + param = p; // only use the input if reading was successful } return param; }