summaryrefslogtreecommitdiffstats
path: root/kdecore/kcharsets.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-06 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-06 19:48:06 +0000
commit0761ef3c62e43ffed5a81854b7b45e579016f5b7 (patch)
tree5aa48590c295ad6d29aafe4782d7f762f2ee38d3 /kdecore/kcharsets.cpp
parentcb4a5d685bd5a3129e1edb8bac1ee6c41939fe7b (diff)
downloadtdelibs-0761ef3c62e43ffed5a81854b7b45e579016f5b7.tar.gz
tdelibs-0761ef3c62e43ffed5a81854b7b45e579016f5b7.zip
Locked down more ambiguous datatypes
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1160010 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdecore/kcharsets.cpp')
-rw-r--r--kdecore/kcharsets.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/kdecore/kcharsets.cpp b/kdecore/kcharsets.cpp
index f4ae826f5..52cf87849 100644
--- a/kdecore/kcharsets.cpp
+++ b/kdecore/kcharsets.cpp
@@ -372,13 +372,13 @@ TQChar KCharsets::fromEntity(const TQString &str)
TQChar res = TQChar::null;
int pos = 0;
- if(str[pos] == '&') pos++;
+ if(str[pos] == (QChar)'&') pos++;
// Check for '&#000' or '&#x0000' sequence
- if (str[pos] == '#' && str.length()-pos > 1) {
+ if (str[pos] == (QChar)'#' && str.length()-pos > 1) {
bool ok;
pos++;
- if (str[pos] == 'x' || str[pos] == 'X') {
+ if (str[pos] == (QChar)'x' || str[pos] == (QChar)'X') {
pos++;
// '&#x0000', hexadeciaml character reference
TQString tmp(str.unicode()+pos, str.length()-pos);
@@ -412,7 +412,7 @@ TQChar KCharsets::fromEntity(const TQString &str, int &len)
{
TQString tmp = str.left(len);
TQChar res = fromEntity(tmp);
- if( res != TQChar::null ) return res;
+ if( res != (QChar)TQChar::null ) return res;
len--;
}
return TQChar::null;
@@ -437,13 +437,13 @@ TQString KCharsets::resolveEntities( const TQString &input )
for ( ; p < end; ++p ) {
const TQChar ch = *p;
- if ( ch == '&' ) {
+ if ( ch == (QChar)'&' ) {
ampersand = p;
scanForSemicolon = true;
continue;
}
- if ( ch != ';' || scanForSemicolon == false )
+ if ( ch != (QChar)';' || scanForSemicolon == false )
continue;
assert( ampersand );