リビジョン | 8bdb0f81fecb967af1c30987f828c354678ccc17 (tree) |
---|---|
日時 | 2014-04-03 16:47:48 |
作者 | jakago <jakago777@gmai...> |
コミッター | jakago |
toAscii()をtoLatin1()に変更
@@ -469,7 +469,7 @@ QString DownloadThread::formatName( QString format, QString kouza, QString hdate | ||
469 | 469 | QChar qchar = format[i]; |
470 | 470 | if ( percent ) { |
471 | 471 | percent = false; |
472 | - char ascii = qchar.toAscii(); | |
472 | + char ascii = qchar.toLatin1(); | |
473 | 473 | if ( checkIllegal && illegal( ascii ) ) |
474 | 474 | continue; |
475 | 475 | switch ( ascii ) { |
@@ -489,7 +489,7 @@ QString DownloadThread::formatName( QString format, QString kouza, QString hdate | ||
489 | 489 | } else { |
490 | 490 | if ( qchar == QChar( '%' ) ) |
491 | 491 | percent = true; |
492 | - else if ( checkIllegal && illegal( qchar.toAscii() ) ) | |
492 | + else if ( checkIllegal && illegal( qchar.toLatin1() ) ) | |
493 | 493 | continue; |
494 | 494 | else |
495 | 495 | result += qchar; |
@@ -50,7 +50,7 @@ namespace MP3 { | ||
50 | 50 | |
51 | 51 | void asciiFrame( QByteArray& frames, id3v22_frame_header& frameHeader, QString string ) { |
52 | 52 | static const char asciiMark = '\0'; |
53 | - QByteArray asciiBytes = string.toAscii(); | |
53 | + QByteArray asciiBytes = string.toLatin1(); | |
54 | 54 | long length = asciiBytes.size() + 2; // 末尾の1バイトの'\0'と文字コードの指定に1バイト |
55 | 55 | if ( length > 2 && length < 0x01000000 ) { |
56 | 56 | frameHeader.size[0] = (length & 0x00ff0000) >> 16; |