Commit a92c9c31 authored by Arnold Dumas's avatar Arnold Dumas
Browse files

Get rid of to/fromAscii methods.

parent 50f2ee69
......@@ -1065,7 +1065,7 @@ bool KDjVu::exportAsPostScript( QFile* file, const QList<int>& pageList ) const
// setting the options
static const int optc = 1;
const char ** optv = (const char**)malloc( 1 * sizeof( char* ) );
QByteArray plb = pl.toAscii();
QByteArray plb = pl.toLatin1();
optv[0] = plb.constData();
ddjvu_job_t *printjob = ddjvu_document_print( d->m_djvu_document, f, optc, optv );
......
......@@ -85,7 +85,7 @@ TeXFont_PFB::TeXFont_PFB(TeXFontDefinition *parent, fontEncoding *enc, double sl
qCDebug(OkularDviDebug) << "Trying to associate glyph indices to names from the encoding vector.";
#endif
for(int i=0; i<256; i++) {
charMap[i] = FT_Get_Name_Index( face, (FT_String *)(enc->glyphNameVector[i].toAscii().data()) );
charMap[i] = FT_Get_Name_Index( face, (FT_String *)(enc->glyphNameVector[i].toLatin1().data()) );
#ifdef DEBUG_PFB
qCDebug(OkularDviDebug) << i << ": " << enc->glyphNameVector[i] << ", GlyphIndex=" << charMap[i];
#endif
......
......@@ -214,7 +214,7 @@ void ghostscript_interface::gs_generate_graphics_file(const PageNumber& page, co
PSfile.close();
// Step 2: Call GS with the File
QFile::remove(filename.toAscii());
QFile::remove(filename.toLatin1());
KProcess proc;
proc.setOutputChannelMode(KProcess::SeparateChannels);
QStringList argus;
......
......@@ -63,7 +63,7 @@ QString ManifestEntry::checksumType() const
void ManifestEntry::setChecksum( const QString &checksum )
{
m_checksum = QByteArray::fromBase64( checksum.toAscii() );
m_checksum = QByteArray::fromBase64( checksum.toLatin1() );
}
QByteArray ManifestEntry::checksum() const
......@@ -83,7 +83,7 @@ QString ManifestEntry::algorithm() const
void ManifestEntry::setInitialisationVector( const QString &initialisationVector )
{
m_initialisationVector = QByteArray::fromBase64( initialisationVector.toAscii() );
m_initialisationVector = QByteArray::fromBase64( initialisationVector.toLatin1() );
}
QByteArray ManifestEntry::initialisationVector() const
......@@ -113,7 +113,7 @@ int ManifestEntry::iterationCount() const
void ManifestEntry::setSalt( const QString &salt )
{
m_salt = QByteArray::fromBase64( salt.toAscii() );
m_salt = QByteArray::fromBase64( salt.toLatin1() );
}
QByteArray ManifestEntry::salt() const
......
......@@ -315,7 +315,7 @@ QVariant GSGenerator::metaData(const QString &key, const QVariant &option) const
{
const char *title = spectre_document_get_title(m_internalDocument);
if (title)
return QString::fromAscii(title);
return QString::fromLatin1(title);
}
return QVariant();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment