summaryrefslogtreecommitdiffstats
path: root/kommander/factory/domtool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kommander/factory/domtool.cpp')
-rw-r--r--kommander/factory/domtool.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/kommander/factory/domtool.cpp b/kommander/factory/domtool.cpp
index 40190ff1..587b4a24 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 ) );
@@ -177,7 +177,7 @@ TQVariant DomTool::elementToVariant( const TQDomElement& e, const TQVariant& def
v = TQVariant( e.firstChild().toText().data().toDouble() );
} else if ( e.tagName() == "bool" ) {
TQString t = e.firstChild().toText().data();
- v = TQVariant( t == "true" || t == "1", 0 );
+ v = TQVariant( t == "true" || t == "1" );
} else if ( e.tagName() == "pixmap" ) {
v = TQVariant( e.firstChild().toText().data() );
} else if ( e.tagName() == "iconset" ) {