diff --git a/generators/chm/kio-msits/msits.h b/generators/chm/kio-msits/msits.h
index d91962c5d..2a730b1bf 100644
--- a/generators/chm/kio-msits/msits.h
+++ b/generators/chm/kio-msits/msits.h
@@ -52,7 +52,7 @@ private:
// Resolve an object inside a CHM file
inline bool ResolveObject (const QString& fileName, chmUnitInfo *ui)
{
- return m_chmFile != NULL && ::chm_resolve_object(m_chmFile, fileName.ascii(), ui) == CHM_RESOLVE_SUCCESS;
+ return m_chmFile != NULL && ::chm_resolve_object(m_chmFile, fileName.toAscii().constData(), ui) == CHM_RESOLVE_SUCCESS;
}
// Retrieve an object from the CHM file
diff --git a/generators/chm/lib/xchmfile.cpp b/generators/chm/lib/xchmfile.cpp
index e4e6a3c64..536e30b30 100644
--- a/generators/chm/lib/xchmfile.cpp
+++ b/generators/chm/lib/xchmfile.cpp
@@ -177,12 +177,12 @@ inline int CHMFile::findStringInQuotes (const QString& tag, int offset, QString&
}
int qbegin = tag.indexOf ('"', offset);
if ( qbegin == -1 )
- qFatal ("CHMFile::findStringInQuotes: cannot find first quote in tag: '%s'", tag.ascii());
+ qFatal ("CHMFile::findStringInQuotes: cannot find first quote in tag: '%s'", tag.toAscii().constData());
int qend = firstquote ? tag.indexOf ('"', qbegin + 1) : tag.lastIndexOf ('"');
if ( qend == -1 || qend <= qbegin )
- qFatal ("CHMFile::findStringInQuotes: cannot find last quote in tag: '%s'", tag.ascii());
+ qFatal ("CHMFile::findStringInQuotes: cannot find last quote in tag: '%s'", tag.toAscii().constData());
// If we do not need to decode HTML entities, just return.
if ( decodeentities )
@@ -209,7 +209,7 @@ inline int CHMFile::findStringInQuotes (const QString& tag, int offset, QString&
if ( it == m_entityDecodeMap.end() )
{
- qWarning ("CHMFile::DecodeHTMLUnicodeEntity: could not decode HTML entity '%s', abort decoding.", htmlentity.ascii());
+ qWarning ("CHMFile::DecodeHTMLUnicodeEntity: could not decode HTML entity '%s', abort decoding.", htmlentity.toAscii().constData());
break;
}
@@ -363,7 +363,7 @@ bool CHMFile::ParseHhcAndFillTree (const QString& file, QDomDocument *tree, bool
int nextpos = src.indexOf (src[i], i+1);
if ( nextpos == -1 && (nextpos = src.indexOf ('>', i+1)) == -1 )
{
- qWarning ("CHMFile::ParseHhcAndFillTree: corrupted TOC: %s", src.mid(i).ascii());
+ qWarning ("CHMFile::ParseHhcAndFillTree: corrupted TOC: %s", src.mid(i).toAscii().constData());
return false;
}
@@ -382,7 +382,7 @@ bool CHMFile::ParseHhcAndFillTree (const QString& file, QDomDocument *tree, bool
else
tagword = tag.toLower();
-// qDebug ("tag: '%s', tagword: '%s'\n", tag.ascii(), tagword.ascii());
+// qDebug ("tag: '%s', tagword: '%s'\n", tag.toAscii().constData(), tagword.toAscii().constData());
//