Blob Blame History Raw
--- kdesdk/umbrello/umbrello/codeimport/kdevcppparser/lexer.h	2009/01/19 15:43:21	913606
+++ kdesdk/umbrello/umbrello/codeimport/kdevcppparser/lexer.h	2009/01/19 15:46:29	913607
@@ -105,8 +105,8 @@
     QChar currentChar() const {
       return m_ptr != m_endPtr ? *m_ptr : QChar::null;
     }
-    bool eof() const {return m_ptr >= m_endPtr;}
-    int length() const {return m_endPtr - m_ptr;}
+    bool eof() const {return m_ptr == m_endPtr;}
+    int length() const {return std::distance(m_ptr, m_endPtr);}
     void nextChar() {
       QChar l_current = *m_ptr++;
       switch( l_current.toAscii()) {
--- kdesdk/umbrello/umbrello/codeimport/kdevcppparser/preprocesslexer.h	2009/01/19 15:43:21	913606
+++ kdesdk/umbrello/umbrello/codeimport/kdevcppparser/preprocesslexer.h	2009/01/19 15:46:29	913607
@@ -264,8 +264,8 @@
     QChar currentChar() const {
       return m_ptr != m_endPtr ? *m_ptr : QChar::null;
     }
-    bool eof() const {return m_ptr >= m_endPtr;}
-    int length() const {return m_endPtr - m_ptr;}
+    bool eof() const {return m_ptr == m_endPtr;}
+    int length() const {return std::distance(m_ptr, m_endPtr);}
     void nextChar() {
       QChar l_current = *m_ptr++;
     }