]> git.lyx.org Git - lyx.git/blobdiff - src/lyxlex.C
Minimal fix needed to give Qt a label dialog again.
[lyx.git] / src / lyxlex.C
index 3bd90f40b4381f8ffd86a8504cf23c9908c621b8..9df38a2108a0820320f9d5de1f195c558c6609b9 100644 (file)
 
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation "lyxlex.h"
-#endif
-
 #include "lyxlex.h"
 #include "lyxlex_pimpl.h"
 #include "debug.h"
@@ -117,12 +113,10 @@ int LyXLex::lex()
 
 int LyXLex::getInteger() const
 {
-       if (isStrInt(pimpl_->getString())) {
+       if (isStrInt(pimpl_->getString()))
                return strToInt(pimpl_->getString());
-       } else {
-               pimpl_->printError("Bad integer `$$Token'");
-               return -1;
-       }
+       pimpl_->printError("Bad integer `$$Token'");
+       return -1;
 }
 
 
@@ -134,10 +128,8 @@ float LyXLex::getFloat() const
        string str = subst(pimpl_->getString(), ",", ".");
        if (isStrDbl(str))
                return strToDbl(str);
-       else {
-               pimpl_->printError("Bad float `$$Token'");
-               return -1;
-       }
+       pimpl_->printError("Bad float `$$Token'");
+       return -1;
 }