summaryrefslogtreecommitdiffstats
path: root/kxmleditor
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2019-05-09 15:19:44 +0200
committerSlávek Banko <slavek.banko@axis.cz>2019-05-09 15:19:44 +0200
commit25fe483e16bfbee521731caa40ae2fea6f29af68 (patch)
tree82c1978d0f7ab679f204bb94e496a22de9a28378 /kxmleditor
parentd5bdad9b22c20c4d85b9a26f00e1ed8b137eb3f6 (diff)
downloadkxmleditor-25fe483e16bfbee521731caa40ae2fea6f29af68.tar.gz
kxmleditor-25fe483e16bfbee521731caa40ae2fea6f29af68.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>
Diffstat (limited to 'kxmleditor')
-rw-r--r--kxmleditor/kxmleditorshell.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/kxmleditor/kxmleditorshell.cpp b/kxmleditor/kxmleditorshell.cpp
index 5e6b2ba..91188d0 100644
--- a/kxmleditor/kxmleditorshell.cpp
+++ b/kxmleditor/kxmleditorshell.cpp
@@ -406,9 +406,9 @@ KParts::ReadWritePart* KXMLEditorShell::createXMLPart(TQObject *parent)
KParts::ReadWritePart* KXMLEditorShell::createPart(TQObject *parent, const TQString& libName, const TQString& className)
{
KParts::ReadWritePart* newPart = 0L;
- KLibFactory * pFactory = KLibLoader::self()->factory(libName);
+ KLibFactory * pFactory = KLibLoader::self()->factory(libName.local8Bit());
if (pFactory)
- newPart = static_cast <KParts::ReadWritePart*> ( pFactory->create( parent, "KXMLEditor view", className ) );
+ newPart = static_cast <KParts::ReadWritePart*> ( pFactory->create( parent, "KXMLEditor view", className.utf8() ) );
else
kdFatal() << "KXMLEditorShell::KXMLEditorShell no " << libName << " found" << endl;
return newPart;