summaryrefslogtreecommitdiffstats
path: root/khtml/html/html_elementimpl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'khtml/html/html_elementimpl.cpp')
-rw-r--r--khtml/html/html_elementimpl.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/khtml/html/html_elementimpl.cpp b/khtml/html/html_elementimpl.cpp
index a5931cd41..736b5a3b9 100644
--- a/khtml/html/html_elementimpl.cpp
+++ b/khtml/html/html_elementimpl.cpp
@@ -347,17 +347,17 @@ void HTMLElementImpl::addCSSLength(int id, const DOMString &value, bool numOnly,
}
static inline bool isHexDigit( const TQChar &c ) {
- return ( c >= '0' && c <= '9' ) ||
- ( c >= 'a' && c <= 'f' ) ||
- ( c >= 'A' && c <= 'F' );
+ return ( c >= TQChar('0') && c <= TQChar('9') ) ||
+ ( c >= TQChar('a') && c <= TQChar('f') ) ||
+ ( c >= TQChar('A') && c <= TQChar('F') );
}
static inline int toHex( const TQChar &c ) {
- return ( (c >= '0' && c <= '9')
+ return ( (c >= TQChar('0') && c <= TQChar('9'))
? (c.tqunicode() - '0')
- : ( ( c >= 'a' && c <= 'f' )
+ : ( ( c >= TQChar('a') && c <= TQChar('f') )
? (c.tqunicode() - 'a' + 10)
- : ( ( c >= 'A' && c <= 'F' )
+ : ( ( c >= TQChar('A') && c <= TQChar('F') )
? (c.tqunicode() - 'A' + 10)
: -1 ) ) );
}