]> git.lyx.org Git - features.git/blobdiff - src/insets/insetbib.C
adjust
[features.git] / src / insets / insetbib.C
index 81a73e5938c9cc9660eb78dc9d403e931b4bbbdb..044431ded0c4dce9c78867d38fe8069652f2f9f0 100644 (file)
@@ -79,14 +79,13 @@ void InsetBibKey::write(Buffer const *, ostream & os) const
 // This is necessary here because this is written without begin_inset
 // This should be changed!!! (Jug)
 void InsetBibKey::read(Buffer const *, LyXLex & lex)
-{    
-       string token;
-
-       if (lex.EatLine()) {
-               token = lex.GetString();
+{
+       if (lex.eatLine()) {
+               string const token = lex.getString();
                scanCommand(token);
-       } else
+       } else {
                lex.printError("InsetCommand: Parse error: `$$Token'");
+       }
 
        if (prefixIs(getContents(), key_prefix)) {
                int key = strToInt(getContents().substr(key_prefix.length()));