• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision8bdb0f81fecb967af1c30987f828c354678ccc17 (tree)
Zeit2014-04-03 16:47:48
Autorjakago <jakago777@gmai...>
Commiterjakago

Log Message

toAscii()をtoLatin1()に変更

Ändern Zusammenfassung

Diff

--- a/downloadthread.cpp
+++ b/downloadthread.cpp
@@ -469,7 +469,7 @@ QString DownloadThread::formatName( QString format, QString kouza, QString hdate
469469 QChar qchar = format[i];
470470 if ( percent ) {
471471 percent = false;
472- char ascii = qchar.toAscii();
472+ char ascii = qchar.toLatin1();
473473 if ( checkIllegal && illegal( ascii ) )
474474 continue;
475475 switch ( ascii ) {
@@ -489,7 +489,7 @@ QString DownloadThread::formatName( QString format, QString kouza, QString hdate
489489 } else {
490490 if ( qchar == QChar( '%' ) )
491491 percent = true;
492- else if ( checkIllegal && illegal( qchar.toAscii() ) )
492+ else if ( checkIllegal && illegal( qchar.toLatin1() ) )
493493 continue;
494494 else
495495 result += qchar;
--- a/mp3.cpp
+++ b/mp3.cpp
@@ -50,7 +50,7 @@ namespace MP3 {
5050
5151 void asciiFrame( QByteArray& frames, id3v22_frame_header& frameHeader, QString string ) {
5252 static const char asciiMark = '\0';
53- QByteArray asciiBytes = string.toAscii();
53+ QByteArray asciiBytes = string.toLatin1();
5454 long length = asciiBytes.size() + 2; // 末尾の1バイトの'\0'と文字コードの指定に1バイト
5555 if ( length > 2 && length < 0x01000000 ) {
5656 frameHeader.size[0] = (length & 0x00ff0000) >> 16;