]> git.lyx.org Git - lyx.git/commitdiff
even example code should follow the style conventions
authorAndré Pönitz <poenitz@gmx.net>
Thu, 20 Mar 2008 20:36:30 +0000 (20:36 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Thu, 20 Mar 2008 20:36:30 +0000 (20:36 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23855 a592a061-630c-0410-9148-cb99ea01b6c8

src/Lexer.h

index d4e440121c87f726c9e939ba124cd24b1c010c0e..46355905b4c7a32f7aa7b97fa99c95015ae088b9 100644 (file)
@@ -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;
        }