]> git.lyx.org Git - lyx.git/blobdiff - src/lyxlex.h
Fix event loop to no longer eat CPU
[lyx.git] / src / lyxlex.h
index 13937e6a7d8b9f7f21974eeca6db6f4e4f2984d6..dc16b52b1a7a7a19c3f1764d72dbb123e70c02fa 100644 (file)
@@ -96,7 +96,7 @@ public:
        ///
        bool getBool() const;
        ///
-       float getFloat() const;
+       double getFloat() const;
        ///
        std::string const getString() const;
 
@@ -111,8 +111,6 @@ public:
 
        ///
        bool eatLine();
-       ///
-       int findToken(char const * const str[]);
 
        /// Pushes a token list on a stack and replaces it with a new one.
        void pushTable(keyword_item *, int);
@@ -133,8 +131,6 @@ public:
 
        /// extract string
        LyXLex & operator>>(std::string &);
-       /// extract float
-       LyXLex & operator>>(float &);
        /// extract double
        LyXLex & operator>>(double &);
        /// extract integer
@@ -145,7 +141,7 @@ public:
        LyXLex & operator>>(bool &);
 
 private:
-       struct Pimpl;
+       class Pimpl;
        ///
        Pimpl * pimpl_;
 };
@@ -157,7 +153,8 @@ private:
     exceptions.
     @author Lgb
 */
-struct pushpophelper {
+class pushpophelper {
+public:
        ///
        pushpophelper(LyXLex & lexrc, keyword_item * i, int s) : lex(lexrc) {
                lex.pushTable(i, s);