summaryrefslogtreecommitdiffstats
path: root/kommander/factory/domtool.cpp
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2021-03-07 20:24:08 +0100
committerSlávek Banko <slavek.banko@axis.cz>2021-03-12 00:35:39 +0100
commit369d8455ac39aa9f5328b855bd5f456e3f384a63 (patch)
treeea0e74835bcc4c1ca9245316ffebf9a439828dd3 /kommander/factory/domtool.cpp
parenteea71ca9ecdfbd4682054a86cc9bbf954af94693 (diff)
downloadtdewebdev-369d8455ac39aa9f5328b855bd5f456e3f384a63.tar.gz
tdewebdev-369d8455ac39aa9f5328b855bd5f456e3f384a63.zip
Added controlled conversions to char* instead of automatic ascii conversions.
The definition of -UTQT_NO_ASCII_CAST is no longer needed. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 70defe5e6d9498c5c6011eee50c4dc506abebd61)
Diffstat (limited to 'kommander/factory/domtool.cpp')
-rw-r--r--kommander/factory/domtool.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kommander/factory/domtool.cpp b/kommander/factory/domtool.cpp
index 40190ff1..25030fe5 100644
--- a/kommander/factory/domtool.cpp
+++ b/kommander/factory/domtool.cpp
@@ -169,7 +169,7 @@ TQVariant DomTool::elementToVariant( const TQDomElement& e, const TQVariant& def
if ( n.tagName() == "comment" )
comment = n.firstChild().toText().data();
} else if ( e.tagName() == "cstring" ) {
- v = TQVariant( TQCString( e.firstChild().toText().data() ) );
+ v = TQVariant( e.firstChild().toText().data().utf8() );
} else if ( e.tagName() == "number" ) {
bool ok = true;
v = TQVariant( e.firstChild().toText().data().toInt( &ok ) );