From 6c977615633e5e132494b9a7fa778588210f9c95 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Thu, 20 Mar 2008 20:36:30 +0000 Subject: [PATCH] even example code should follow the style conventions git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23855 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Lexer.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Lexer.h b/src/Lexer.h index d4e440121c..46355905b4 100644 --- a/src/Lexer.h +++ b/src/Lexer.h @@ -39,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; } -- 2.39.2